xpress

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

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

View Source
var ErrCorrupt = errors.New("xpress: corrupt data")

ErrCorrupt indicates malformed XPRESS data.

Functions

func Decompress

func Decompress(in []byte, outSize int) ([]byte, error)

Decompress decompresses a single XPRESS chunk into exactly outSize bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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