pub fn vbyte_write_be(n: u64, w: &mut impl Write) -> Result<usize>
Encode a natural number to a big-endian byte stream using variable-length byte codes and return the number of bytes written.