:py:mod:`dissect.util.compression.lzo` ====================================== .. py:module:: dissect.util.compression.lzo Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: :nosignatures: dissect.util.compression.lzo.decompress Attributes ~~~~~~~~~~ .. autoapisummary:: dissect.util.compression.lzo.MAX_READ_LENGTH .. py:data:: MAX_READ_LENGTH .. py:function:: decompress(src: Union[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. :param src: File-like object or bytes to decompress. :param header: Whether the metadata header is included in the input. :param buflen: If ``header`` is ``False``, a buffer length in bytes must be given that will fit the output. :returns: The decompressed data.