dissect.util.compression.lzo

Module Contents

Functions

decompress

LZO decompress from a file-like object or bytes. Assumes no header.

Attributes

dissect.util.compression.lzo.MAX_READ_LENGTH
dissect.util.compression.lzo.decompress(src: bytes | BinaryIO, header: bool = True, buflen: int = -1) bytes

LZO decompress from a file-like object or bytes. Assumes no header.

Arguments are largely compatible with python-lzo API.

Parameters:
  • src – File-like object or bytes to decompress.

  • header – Whether the metadata header is included in the input.

  • buflen – If header is False, a buffer length in bytes must be given that will fit the output.

Returns:

The decompressed data.