Skip to main content

vlq_encode_unchecked

Function vlq_encode_unchecked 

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

Encode a single signed 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).