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 : Encodable
Parameters
value
The enstance to encode.