Buffer length at the beginning of a buffer

First four bytes of a buffer after you pack it is the length of the
remaining portion of the buffer.