Skip to main content

encode_string

Function encode_string 

Source
pub fn encode_string(s: &str, huffman_compress: bool) -> Vec<u8> 
Expand description

Encode a string. huffman_compress=true enables Huffman.

Format: 1-byte header (H flag in bit 7 + 7-bit length prefix) + length continuation + octets.