A codec defines a bi-directional mapping between a binary representation (in the form of a Buffer)
and a logical representation (in some other type). The codec is responsible for encoding instances
of the logical type to Buffers, and decoding Buffers to instances of the logical type.
A codec defines a bi-directional mapping between a binary representation (in the form of a Buffer) and a logical representation (in some other type). The codec is responsible for encoding instances of the logical type to Buffers, and decoding Buffers to instances of the logical type.