dissect.util.compression.lzxpress_huffman

Module Contents

Classes

Functions

decompress

LZXPRESS decompress from a file-like object or bytes.

class dissect.util.compression.lzxpress_huffman.Symbol

Bases: NamedTuple

length: int
symbol: int
class dissect.util.compression.lzxpress_huffman.Node(symbol: Symbol | None = None, is_leaf: bool = False)
__slots__ = ('children', 'is_leaf', 'symbol')
symbol = None
is_leaf = False
children = [None, None]
class dissect.util.compression.lzxpress_huffman.BitString
source = None
mask = 0
bits = 0
property index: int
init(fh: BinaryIO) None
read(n: int) bytes
lookup(n: int) int
skip(n: int) None
decode(root: Node) Symbol
dissect.util.compression.lzxpress_huffman.decompress(src: bytes | BinaryIO) bytes

LZXPRESS decompress from a file-like object or bytes.

Decompresses until EOF of the input data.

Parameters:

src – File-like object or bytes to decompress.

Returns:

The decompressed data.