libWiiPy.archive.lz77 Module

libWiiPy.archive.lz77 Module#

The libWiiPy.archive.lz77 module provides support for handling LZ77 compression, which is a compression format used across the Wii and other Nintendo consoles.

Module Contents#

libWiiPy.archive.lz77.decompress_lz77(lz77_data: bytes) bytes#

Decompresses LZ77-compressed data and returns the decompressed result. Supports data both with and without the magic number ‘LZ77’ (which may not be present if the data is embedded in something else).

Parameters:

lz77_data (bytes) – The LZ77-compressed data to decompress.

Returns:

The decompressed data.

Return type:

bytes