MetaUnkeyedDecodingContainer

open class MetaUnkeyedDecodingContainer : UnkeyedDecodingContainer

Manages a DecodingUnkeyedContainerMeta

  • This MetaUnkeyedDecodingContainer’s meta.

    Declaration

    Swift

    public let meta: DecodingUnkeyedContainerMeta
  • The decoder that created this container.

    Decoding, creating new containers and creating super decoders is delegated to it.

    Declaration

    Swift

    public let decoder: MetaDecoder
  • Declaration

    Swift

    public let codingPath: [CodingKey]

initalization

container methods

  • Declaration

    Swift

    open var count: Int? { get }
  • Declaration

    Swift

    open var isAtEnd: Bool { get }
  • Declaration

    Swift

    open var currentIndex: Int

decoding

  • Declaration

    Swift

    open func decodeNil() throws -> Bool
  • Declaration

    Swift

    open func decode<T>(_ type: T.Type) throws -> T where T : Decodable

nested containers

  • Declaration

    Swift

    open func nestedContainer<NestedKey>(keyedBy keyType: NestedKey.Type) throws -> KeyedDecodingContainer<NestedKey> where NestedKey : CodingKey
  • Declaration

    Swift

    open func nestedUnkeyedContainer() throws -> UnkeyedDecodingContainer

super encoder

  • Declaration

    Swift

    open func superDecoder() throws -> Decoder

Utilities

  • An utility computed property, that returns a coding key for the current index.

    Declaration

    Swift

    public var currentCodingKey: CodingKey { get }
  • An utility method that accesses the meta stored at the current index and throws an error, if not value is present.

    Declaration

    Swift

    public func accessMetaAtCurrentIndex() throws -> Meta