Protocol
UnkeyedDecodingContainer
A type that provides a view into a decoder’s storage and is used to hold the encoded properties of a decodable type sequentially, without keys.
Declaration
Overview
Decoders should provide types conforming to UnkeyedDecodingContainer
for their format.
Topics
Instance Properties
var count: Int?
The number of elements contained within this container.
Required.
var currentIndex: Int
The current decoding index of the container (i.e. the index of the next element to be decoded.) Incremented after every successful decode call.
Required.
var isAtEnd: Bool
A Boolean value indicating whether there are no more elements left to be decoded in the container.
Required.
See Also
Decoding Containers
struct KeyedDecodingContainer
A concrete container that provides a view into a decoder’s storage, making the encoded properties of a decodable type accessible by keys.