crunchmania

crunchmania.pack

pack

def pack(data: bytes | bytearray, sampled: bool = False) -> bytes

Compress data using Crunch-Mania standard mode (CrM!/Crm!).

crunchmania.header

crunchmania.bitreader

BackwardBitReader Objects

class BackwardBitReader()

LSB-first bit reader that reads bytes backward through packed data.

__init__

def __init__(data: bytes | bytearray, start: int, end: int)

Arguments:

crunchmania.constants

crunchmania.unpack

unpack

def unpack(data: bytes | bytearray) -> bytes

Decompress Crunch-Mania compressed data.

Arguments:

Returns:

decompressed data as bytes

Raises:

crunchmania.cli

1 id="crunchmaniacli">crunchmania.cli