xpress

package
v0.4.0 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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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