decode(_:)
Decodes a single value of the given type.
func decode(_ type: UInt32.Type) throws -> UInt32
Parameters
- type
The type to decode as.
Returns
A value of the requested type.
Throws
DecodingError.typeMismatch
if the encountered encoded value cannot be converted to the requested type.
DecodingError.valueNotFound
if the encountered encoded value is null.