Encoder
public protocol Encoder
A protocol providing a encode<T: Encodable>(: T) -> Data interface.
-
Encodes an instance of the indicated type.
Declaration
Swift
func encode<T>(_ value: T) throws -> Data where T : EncodableParameters
valueThe enstance to encode.
View on GitHub
Install in Dash
Encoder Protocol Reference