Skip to main content

vlq_encode_unsigned_unchecked

Function vlq_encode_unsigned_unchecked 

Source
pub unsafe fn vlq_encode_unsigned_unchecked(out: &mut Vec<u8>, value: u64)
Expand description

Encode a single unsigned VLQ value directly into the buffer using unchecked writes.

ยงSafety

Caller must ensure out has at least 7 bytes of spare capacity (out.capacity() - out.len() >= 7).