Versions in this module Expand all Collapse all v0 v0.0.2 Feb 21, 2023 v0.0.1 Feb 13, 2023 Changes in this version + const CACHE_LENGTH + const DYNAMIC_BLOCK + const FIXED_BLOCK + const FORMAT_DEFLATE + const FORMAT_GZIP + const FORMAT_ZLIB + const HASH_MASK + const HASH_SAME + const HASH_SAME_HASH + const HASH_SHIFT + const LAZY_MATCHING + const LONGEST_MATCH_CACHE + const MASTER_BLOCK_SIZE + const MAX_CHAIN_HITS + const MAX_MATCH + const MIN_MATCH + const SHORTCUT_LONG_REPETITIONS + const UNCOMPRESSED_BLOCK + const WINDOW_MASK + const WINDOW_SIZE + func CalculateEntropy(count []float64) (bitLengths []float64) + func Compress(options *Options, outputType int, in []byte, out io.Writer) error + func DeflateCompress(options *Options, in []byte, out io.Writer) error + func GzipCompress(options *Options, in []byte, out io.Writer) error + func ZlibCompress(options *Options, in []byte, out io.Writer) error + type BlockState struct + func NewBlockState(options *Options, in []byte, inStart, inEnd int) (s BlockState) + func (s *BlockState) LZ77Greedy(inStart, inEnd int) (store LZ77Store) + func (s *BlockState) LZ77Optimal(inStart, inEnd int) LZ77Store + func (s *BlockState) LZ77OptimalFixed(inStart, inEnd int) LZ77Store + type Deflator struct + func NewDeflator(wr io.Writer, options *Options) Deflator + func (z *Deflator) Deflate(final bool, in []byte) (err error) + func (z *Deflator) DeflatePart(final bool, in []byte, inStart, inEnd int) (err error) + func (z *Deflator) WriteLZ77Block(blockType byte, final bool, store LZ77Store, expectedDataSize int) + type LZ77Store []lz77Pair + func (store LZ77Store) CalculateBlockSize(blockType byte) uint64 + type Options struct + BlockSplitting bool + BlockSplittingLast bool + BlockSplittingMax int + BlockType byte + NumIterations int + Verbose bool + VerboseMore bool + func DefaultOptions() (options Options)