ProtocolSwift

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.

protocol UnkeyedDecodingContainer

Overview

Decoders should provide types conforming to UnkeyedDecodingContainer for their format.

Requirements

Instance Properties

  • var codingPath: [CodingKey]

    The path of coding keys taken to get to this point in decoding.

  • var count: Int?

    The number of elements contained within this container.

  • 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.

  • var isAtEnd: Bool

    A Boolean value indicating whether there are no more elements left to be decoded in the container.

Instance Methods