Function ADS::bzipCompress

Function Documentation

inline std::vector<std::uint8_t> ADS::bzipCompress(std::string_view s, std::size_t block = 900000)

the bzip of s: blocks of at most block symbols, each transformed, moved to front, coded by RLE0 and by its canonical code of Huffman

Pre:

block > 0

Post:

bzipDecompress( result ) == s (an audit)