pub fn write_varint4(buf: &mut [u8], n: u32) -> Option<usize>
write varint4 to buffer, returning how many bytes were used