A container that can support the storage and direct decoding of a single nonkeyed value.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
Declaration
protocol SingleValueDecodingContainer
A container that can support the storage and direct decoding of a single nonkeyed value.
SDK
Framework
protocol SingleValueDecodingContainer
var coding Path: [Coding Key]The path of coding keys taken to get to this point in encoding.
Required.
func decode(UInt8 .Type) -> UInt8Decodes a single value of the given type.
Required.
func decode(Int64 .Type) -> Int64Decodes a single value of the given type.
Required.
func decode(UInt32 .Type) -> UInt32Decodes a single value of the given type.
Required.
func decode(Int32 .Type) -> Int32Decodes a single value of the given type.
Required.
func decode(Int8 .Type) -> Int8Decodes a single value of the given type.
Required.
func decode(Int .Type) -> IntDecodes a single value of the given type.
Required.
func decode(Int16 .Type) -> Int16Decodes a single value of the given type.
Required.
func decode(Double .Type) -> DoubleDecodes a single value of the given type.
Required.
func decode(String .Type) -> StringDecodes a single value of the given type.
Required.
func decode(UInt16 .Type) -> UInt16Decodes a single value of the given type.
Required.
func decode(UInt64 .Type) -> UInt64Decodes a single value of the given type.
Required.
func decode(UInt .Type) -> UIntDecodes a single value of the given type.
Required.
func decode(Float .Type) -> FloatDecodes a single value of the given type.
Required.
func decode(Bool .Type) -> BoolDecodes a single value of the given type.
Required.
func decode<T>(T .Type) -> TDecodes a single value of the given type.
Required.
func decode Nil() -> BoolDecodes a null value.
Required.
struct Keyed Decoding ContainerA concrete container that provides a view into a decoder’s storage, making the encoded properties of a decodable type accessible by keys.
protocol Keyed Decoding Container ProtocolA type that provides a view into a decoder’s storage and is used to hold the encoded properties of a decodable type in a keyed manner.
protocol Unkeyed Decoding ContainerA 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.