dissect.util.compression.lzxpress_huffman#

Module Contents#

Classes#

Functions#

decompress

LZXPRESS decompress from a file-like object or bytes.

Attributes#

dissect.util.compression.lzxpress_huffman.Symbol#
class dissect.util.compression.lzxpress_huffman.Node(symbol: Symbol | None = None, is_leaf: bool = False)#
__slots__ = ('symbol', 'is_leaf', 'children')#
class dissect.util.compression.lzxpress_huffman.BitString#
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.