Skip to main content

encode

Function encode 

Source
pub fn encode(values: &[i64]) -> Result<Vec<u8>>
Expand description

Encodes a chunk of integers, choosing the cascade that comes out smallest.

ยงErrors

If the chunk is longer than u32::MAX, or if an encoding produces something its own decoder would not accept, which is an internal inconsistency rather than a caller error.