pub fn write_number(val: u64, buffer: &mut impl Write) -> Result<()>
Encodes val into buffer using variable-byte encoding.
val
buffer