We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
An object that encodes instances of a data type as MessagePack objects.
final public class MessagePackEncoder
TopLevelEncoder
Input
canImport(Combine)
public typealias Input = Data
init()
public init()
userInfo
A dictionary you use to customize the encoding process by providing contextual information.
var userInfo: [CodingUserInfoKey : Any] = [:]
encode(_:)
Returns a MessagePack-encoded representation of the value you supply.
public func encode<T>(_ value: T) throws -> Data where T: Encodable
EncodingError.invalidValue(_:_:) if the value can't be encoded as a MessagePack object.
EncodingError.invalidValue(_:_:)