pub fn write<T: TryInto<u64>>(value: T, buf: &mut impl BufMut)
Encodes a unsigned 64-bit integer as a varint