pub fn encode_size(buffer: &mut impl BufMut, size: usize)
Writes a length out to a byte stream as a series of 7 bit numbers, with the high bit used to indicate we have hit the end of the length