This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 32
MessagePackDecoder
mattt edited this page Apr 24, 2021
·
1 revision
An object that decodes instances of a data type from MessagePack objects.
final public class MessagePackDecoder
TopLevelDecoder
canImport(Combine)
-
public typealias Input = Data
public init()
A dictionary you use to customize the decoding process by providing contextual information.
var userInfo: [CodingUserInfoKey : Any] = [:]
The strategy used by a decoder when it encounters format mismatches for floating point values.
var nonMatchingFloatDecodingStrategy: NonMatchingFloatDecodingStrategy = .strict
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
- type: The type of the value to decode from the supplied MessagePack object.
- data: The MessagePack object to decode.
DecodingError.dataCorrupted(_:)
if the data is not valid MessagePack.
Generated at 2021-04-24T11:07:45+0000 using swift-doc 1.0.0-beta.5.