-
The decoder hit the end of the data while the values it was decoding expected more.
Declaration
Swift
case prematureEndOfData -
Attempted to decode a type which is
Decodable, but notXDRDecodable. (We requireXDRDecodablebecauseXDRDecoderdoesn’t support full keyed coding functionality.)Declaration
Swift
case typeNotConformingToXDRDecodable(Decodable.Type) -
Attempted to decode a type which is not
Decodable.Declaration
Swift
case typeNotConformingToDecodable(Any.Type) -
Attempted to decode an
Intwhich can’t be represented. This happens in 32-bit code when the storedIntdoesn’t fit into 32 bits.Declaration
Swift
case intOutOfRange(Int64) -
Attempted to decode a
UIntwhich can’t be represented. This happens in 32-bit code when the storedUIntdoesn’t fit into 32 bits.Declaration
Swift
case uintOutOfRange(UInt64) -
Attempted to decode a
Boolwhere the byte representing it was not a1or a0.Declaration
Swift
case boolOutOfRange(UInt32) -
Attempted to decode a
Stringbut the encodedStringdata was not valid UTF-8.Declaration
Swift
case invalidUTF8([UInt8]) -
Decoding nesting depth exceeded the limit. Guards against unbounded recursive XDR structures (e.g. deeply nested delegate trees) that would overflow the native call stack.
Declaration
Swift
case maxDecodingDepthExceeded
View on GitHub
Install in Dash