A Codec for a type T defines how to serialize and deserialize the value to and from a binary format.
Codec
T
The type of the value to encode and decode.
Decode a value from a binary format.
Should throw an error if the value is not deserializable.
Encode a value into a binary format.
A
Codecfor a typeTdefines how to serialize and deserialize the value to and from a binary format.