dissect.esedb.compression

Module Contents

Functions

decompress

Decompress the given bytes according to the encoded compression scheme.

decompress_size

Return the decompressed size of the given bytes according to the encoded compression scheme.

dissect.esedb.compression.decompress(buf: bytes) bytes

Decompress the given bytes according to the encoded compression scheme.

Parameters:

buf – The compressed bytes to decompress.

Raises:

NotImplementedError – If the buffer is compressed with an unsupported compression algorithm (XPRESS9/XPRESS10).

dissect.esedb.compression.decompress_size(buf: bytes) int | None

Return the decompressed size of the given bytes according to the encoded compression scheme.

Parameters:

buf – The compressed bytes to return the decompressed size of.

Raises:

NotImplementedError – If the buffer is compressed with an unsupported compression algorithm (XPRESS9/XPRESS10).