bin_dump ?header writer v uses writer to first compute the size of
v in the binary protocol, then allocates a buffer of exactly this
size, and then writes out the value.
bin_read_stream ?max_size ~read reader reads binary protocol data
from a stream as generated by the read function, which places
data of a given length into a given buffer.
blit_buf ?src_pos ~src ?dst_pos ~dst len blits len bytes of the
source buffer src starting at position src_pos to destination
buffer dst starting at position dst_pos.
blit_buf_string ?src_pos src ?dst_pos dst ~len blits len
bytes of the source buffer src starting at position src_pos
to string dst starting at position dst_pos.
blit_string_buf ?src_pos src ?dst_pos dst ~len blits len
bytes of the source string src starting at position src_pos
to buffer dst starting at position dst_pos.