Modules§
Functions§
- build_
table_ by_ sampling - build symbol table by sampling the given strings
symbol table can be used to build
Encoder
andDecoder
- decode_
all_ strings - decode all string encodings by the given symbol table
- decode_
string - decode bytes to string according to the give symbol table
- encode_
all_ strings - encode all given strings it will sample the given strings and build a symbol table which will be returned in a tuple
- encode_
all_ strings_ from_ file - encode_
string - encode a single string if including_table is true, it will encode the symbol table to bytes and add it the encoding bytes header, i.e., | symbol table bytes | string encoding bytes |
- read_
string_ lines