BlzCodec

object BlzCodec

Bottom-LZ codec for Nintendo DS ARM9 binaries and overlay files.

Ported from the CUE BLZ reference implementation (blz.c) and the simpler arm9dec variant used in the original C++ randomizer.

Functions

Link copied to clipboard
fun compress(input: ByteArray, arm9: Boolean = false): ByteArray

Compresses input using BLZ.

Link copied to clipboard

Decompresses a BLZ-encoded buffer.