Skip to content
ratranqu edited this page Jan 28, 2021 · 3 revisions

Codec

public class Codec

Initializers

init()

public init()

Properties

codec

let codec

Methods

mustMarshalJSON(value:)

public func mustMarshalJSON<T: Encodable>(value: T) -> Data

mustMarshalBinaryLengthPrefixed(value:)

public func mustMarshalBinaryLengthPrefixed<T: Encodable>(value: T) -> Data

unmarshalBinaryLengthPrefixed(data:)

public func unmarshalBinaryLengthPrefixed<T: Decodable>(data: Data) throws -> T

unmarshalJSON(data:)

public func unmarshalJSON<T: Decodable>(data: Data) throws -> T

mustUnmarshalJSON(data:)

public func mustUnmarshalJSON<T: Decodable>(data: Data) -> T

unmarshalBinaryBare(data:)

public func unmarshalBinaryBare<T: Decodable>(data: Data) throws -> T

marshalJSONIndent(value:)

public func marshalJSONIndent<T: Encodable>(value: T) throws -> Data

mustUnmarshalBinaryLength(data:)

public func mustUnmarshalBinaryLength<T: Decodable>(data: Data) -> T

mustUnmarshalBinaryLengthPrefixed(data:)

public func mustUnmarshalBinaryLengthPrefixed<T: Decodable>(data: Data) -> T

mustMarshalJSONIndent(value:)

public func mustMarshalJSONIndent<T: Encodable>(value: T) -> Data

Clone this wiki locally