monero_io

Function write_varint

Source
pub fn write_varint<W: Write, U: VarInt>(varint: &U, w: &mut W) -> Result<()>
Expand description

Write a number, VarInt-encoded.

This will panic if the VarInt exceeds u64::MAX.