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 31
MessagePackEncoder
mattt edited this page Apr 24, 2021
·
1 revision
An object that encodes instances of a data type as MessagePack objects.
final public class MessagePackEncoder
TopLevelEncoder
canImport(Combine)
-
public typealias Input = Data
public init()
A dictionary you use to customize the encoding process by providing contextual information.
var userInfo: [CodingUserInfoKey : Any] = [:]
Returns a MessagePack-encoded representation of the value you supply.
public func encode<T>(_ value: T) throws -> Data where T: Encodable
- value: The value to encode as MessagePack.
EncodingError.invalidValue(_:_:)
if the value can't be encoded as a MessagePack object.
Generated at 2021-04-24T11:07:45+0000 using swift-doc 1.0.0-beta.5.