pub fn read_varint4(buf: &[u8]) -> Result<(u32, usize), ()>
read varint4 from buffer, returning (value, size)