pub fn encode_write<W: Write>(n: u64, w: W) -> Result<usize, Error>
Encodes n into the writer, returning how many bytes have been written.
n