Skip to main content

encode

Function encode 

Source
pub fn encode(bytes: &[u8], out: &mut Vec<u8>) -> usize
Expand description

Trains a table on bytes and encodes bytes with it, returning the encoded byte length. Table is the form to reach for when more than one buffer is going to be encoded the same way.