compress

package
v0.0.0-...-4336771 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Estimate

func Estimate(b []byte) float64

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

func ShannonEntropyBits(b []byte) int

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.
s2
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.
zip
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL