Skip to main content

encode_string

Function encode_string 

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

Encode einen String. huffman_compress=true aktiviert Huffman.

Format: 1 Byte Header (H-Flag in Bit 7 + 7-Bit-Length-Prefix) + Length-Continuation + Octets.