Function varu64::encode[][src]

pub fn encode(n: u64, out: &mut [u8]) -> usize
Expand description

Encodes n into the output buffer, returning how many bytes have been written.

Panics

Panics if the buffer is not large enough to hold the encoding.