pub fn encode(value: u64, container: &mut [u8]) -> usize
Expand description
Encodes value
in ULEB128 into container
. The exact number of bytes written
depends on value
, and cannot be determined upfront. The maximum number of bytes
required are 10.
ยงPanic
This function may panic if container.len() < 10
and value
requires more bytes.