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]
-
Declaration
Swift
public init(for meta: DecodingUnkeyedContainerMeta, at codingPath: [CodingKey], decoder: MetaDecoder)
-
Declaration
Swift
open var count: Int? { get }
-
Declaration
Swift
open var isAtEnd: Bool { get }
-
Declaration
Swift
open var currentIndex: Int
-
Declaration
Swift
open func decodeNil() throws -> Bool
-
Declaration
Swift
open func decode<T>(_ type: T.Type) throws -> T where T : Decodable
-
Declaration
Swift
open func nestedContainer<NestedKey>(keyedBy keyType: NestedKey.Type) throws -> KeyedDecodingContainer<NestedKey> where NestedKey : CodingKey
-
Declaration
Swift
open func nestedUnkeyedContainer() throws -> UnkeyedDecodingContainer
-
Declaration
Swift
open func superDecoder() throws -> Decoder
-
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