Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Estimate ¶
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.
func ShannonEntropyBits ¶
ShannonEntropyBits returns the number of bits minimum required to represent an entropy encoding of the input bytes. https://en.wiktionary.org/wiki/Shannon_entropy
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package flate implements the DEFLATE compressed data format, described in RFC 1951.
|
Package flate implements the DEFLATE compressed data format, described in RFC 1951. |
Package fse provides Finite State Entropy encoding and decoding.
|
Package fse provides Finite State Entropy encoding and decoding. |
Package gzip implements reading and writing of gzip format compressed files, as specified in RFC 1952.
|
Package gzip implements reading and writing of gzip format compressed files, as specified in RFC 1952. |
Package huff0 provides fast huffman encoding as used in zstd.
|
Package huff0 provides fast huffman encoding as used in zstd. |
internal
|
|
snapref
Package snapref implements the Snappy compression format.
|
Package snapref implements the Snappy compression format. |
Package s2 implements the S2 compression format.
|
Package s2 implements the S2 compression format. |
cmd/internal/filepathx
Package filepathx adds double-star globbing support to the Glob function from the core path/filepath package.
|
Package filepathx adds double-star globbing support to the Glob function from the core path/filepath package. |
cmd/internal/readahead
Package readahead will do asynchronous read-ahead from an input io.Reader and make the data available as an io.Reader.
|
Package readahead will do asynchronous read-ahead from an input io.Reader and make the data available as an io.Reader. |
Package snappy implements the Snappy compression format.
|
Package snappy implements the Snappy compression format. |
Package zip provides support for reading and writing ZIP archives.
|
Package zip provides support for reading and writing ZIP archives. |
internal/obscuretestdata
Package obscuretestdata contains functionality used by tests to more easily work with testdata that must be obscured primarily due to golang.org/issue/34986.
|
Package obscuretestdata contains functionality used by tests to more easily work with testdata that must be obscured primarily due to golang.org/issue/34986. |
Package zlib implements reading and writing of zlib format compressed data, as specified in RFC 1950.
|
Package zlib implements reading and writing of zlib format compressed data, as specified in RFC 1950. |
Package zstd provides decompression of zstandard files.
|
Package zstd provides decompression of zstandard files. |
Click to show internal directories.
Click to hide internal directories.