pub fn read_int_length(buf: &mut &[u8]) -> Result<usize, ParseError>