Protocol
UnkeyedEncodingContainer
A type that provides a view into an encoder’s storage and is used to hold the encoded properties of an encodable type sequentially, without keys.
Declaration
Overview
Encoders should provide types conforming to UnkeyedEncodingContainer
for their format.
Topics
Instance Properties
var count: Int
The number of elements encoded into the container.
Required.
Instance Methods
func encodeConditional<T>(T)
Encodes a reference to the given object only if it is encoded unconditionally elsewhere in the payload (previously, or in the future).
Required. Default implementation provided.
See Also
Encoding Containers
struct KeyedEncodingContainer
A concrete container that provides a view into an encoder’s storage, making the encoded properties of an encodable type accessible by keys.