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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.