Required Instance Methodswift 6.0.1Swift

encode(_:)

Encodes the given value.

mutating func encode(_ value: UInt8) throws

Parameters

value

The value to encode.

Throws

EncodingError.invalidValue if the given value is invalid in the current context for this format.