[−][src]Function terminus_store::structure::vbyte::encode_slice
pub fn encode_slice(buf: &mut [u8], num: u64) -> Option<usize>
Encodes a u64
by writing its variable-byte encoding to a slice.
On success, this function returns Some
encoding length. Otherwise, the target slice is not
large enough, and the function returns None
.