pub fn write_compact_int<W>(writer: &mut W, number: u64) -> SerResult<usize> where W: Write,
Convenience function for writing a Bitcoin-style VarInt