There was an error while loading. Please reload this page.
An object that decodes instances of a data type from MessagePack objects.
final public class MessagePackDecoder
TopLevelDecoder
Input
canImport(Combine)
public typealias Input = Data
init()
public init()
userInfo
A dictionary you use to customize the decoding process by providing contextual information.
var userInfo: [CodingUserInfoKey : Any] = [:]
nonMatchingFloatDecodingStrategy
The strategy used by a decoder when it encounters format mismatches for floating point values.
var nonMatchingFloatDecodingStrategy: NonMatchingFloatDecodingStrategy = .strict
decode(_:from:)
Returns a value of the type you specify, decoded from a MessagePack object.
public func decode<T>(_ type: T.Type, from data: Data) throws -> T where T: Decodable
DecodingError.dataCorrupted(_:) if the data is not valid MessagePack.
DecodingError.dataCorrupted(_:)