pub fn encode_natural<W: Write>(n: usize, w: &mut BitWriter<W>) -> Result<usize>
Encode a positive integer to bits.