xpress

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: Apache-2.0, BSD-3-Clause, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const MaxSize = 32 << 20 // 32 MiB

MaxSize is the maximum size a single stream may decompress to. Both variants enforce it so a crafted stream cannot request an excessive allocation or produce unbounded output.

Variables

This section is empty.

Functions

func AppendDecompressed

func AppendDecompressed(out, in []byte) ([]byte, error)

AppendDecompressed appends the decompressed form of an XPRESS plain LZ77 stream to out and returns the extended slice. The stream is self-terminating, so no output size is required. On error, out is returned unmodified.

func AppendHDecompressed

func AppendHDecompressed(out, in []byte, decompressed_size int) ([]byte, error)

AppendHDecompressed appends decompressed_size bytes of an XPRESS LZ77+Huffman stream to out and returns the extended slice. The uncompressed size must be known in advance. On error, out is returned unmodified.

Types

This section is empty.

Jump to

Keyboard shortcuts

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