[][src]Function varintbuf::encode

pub fn encode(val: u64, buf: impl BufMut) -> usize

Encode a u64 integer to the bytes::BufMut. Returns how many bytes were encoded.