import "github.com/klauspost/compress"
Estimate returns a normalized compressibility estimate of block b. Values close to zero are likely uncompressible. Values above 0.1 are likely to be compressible. Values above 0.5 are very compressible. Very small lengths will return 0.
ShannonEntropyBits returns the number of bits minimum required to represent an entropy encoding of the input bytes. https://en.wiktionary.org/wiki/Shannon_entropy
Path | Synopsis |
---|---|
flate | Package flate implements the DEFLATE compressed data format, described in RFC 1951. |
fse | Package fse provides Finite State Entropy encoding and decoding. |
gzip | Package gzip implements reading and writing of gzip format compressed files, as specified in RFC 1952. |
huff0 | Package huff0 provides fast huffman encoding as used in zstd. |
s2 | Package s2 implements the S2 compression format. |
s2/cmd/internal/readahead | The readahead package will do asynchronous read-ahead from an input io.Reader and make the data available as an io.Reader. |
s2/cmd/s2c | |
s2/cmd/s2d | |
s2/_generate | |
snappy | Package snappy implements the Snappy compression format. |
zip | Package zip provides support for reading and writing ZIP archives. |
zlib | Package zlib implements reading and writing of zlib format compressed data, as specified in RFC 1950. |
zstd | Package zstd provides decompression of zstandard files. |
zstd/internal/xxhash |
Package compress imports 1 packages (graph) and is imported by 1 packages. Updated 2021-01-14. Refresh now. Tools for package owners.