cryptonote_varint
pub fn write<T: VarInt, W: Write>(writer: &mut W, value: T) where T: From<u8> + BitAnd + BitOrAssign + Shl + VarInt,