Bare_encoding.EncodeSourceEncoder type and some encoding utils.
The type Encode.t is passed to type-specific encoders so they can serialize values into bytes. This module also provides a host of functions that encode specific types (mostly integers and strings) into the Encode.t.
Encoding state.
Encoding state that emits bytes into the given buffer. After using a type encoder on this encoder, the buffer will contain the bytes.