Documentation
¶
Overview ¶
Package xpress also implements the XPRESS (LZ77 + Huffman) compressor, the counterpart to Decompress. Compress emits chunks that Decompress reads back byte-for-byte: a 256-byte codeword-length header followed by the interleaved 16-bit-little-endian bitstream and raw length-overflow bytes, mirroring wimlib's xpress_compress.c output_bitstream exactly.
Package xpress decompresses the XPRESS (LZ77 + Huffman) compression format used by some WIM resources, per [MS-XCA] "LZ77+Huffman". It is a clean-room port of wimlib's xpress_decompress.c.
Each compressed chunk begins with 256 bytes encoding 512 four-bit Huffman codeword lengths (symbols 0-255 are literals; 256-511 are match headers), followed by a 16-bit-little-endian bitstream of Huffman-coded symbols.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrCorrupt = errors.New("xpress: corrupt data")
ErrCorrupt indicates malformed XPRESS data.
Functions ¶
Types ¶
This section is empty.