Required Instance Methodswift 6.0.1Swift

encode(contentsOf:)

Encodes the elements of the given sequence.

mutating func encode<T>(contentsOf sequence: T) throws where T : Sequence, T.Element == Int16

Parameters

sequence

The sequences whose contents to encode.

Throws

An error if any of the contained values throws an error.