Source code for malduck.compression.lznt1
from .components.lznt1 import decompress_data
__all__ = ["Lznt1", "lznt1"]
class Lznt1:
"""
Implementation of LZNT1 decompression. Allows to decompress data compressed by RtlCompressBuffer
.. code-block:: python
from malduck import lznt1
lznt1(b"\x1a\xb0\x00compress\x00edtestda\x04ta\x07\x88alot")
:param buf: Buffer to decompress
:type buf: bytes
:rtype: bytes
"""
def decompress(self, buf: bytes) -> bytes:
return decompress_data(buf)
__call__ = decompress
lznt1 = Lznt1()