libnds
Enumerations | Functions
decompress.h File Reference

wraps the bios decompress functionality into something a bit easier to deal with. More...

#include <nds/ndstypes.h>
#include <nds/bios.h>

Enumerations

Functions

void decompress (const void *data, void *dst, DecompressType type)
 decompresses data using the suported type More...
 
void decompressStream (const void *data, void *dst, DecompressType type, getByteCallback readCB, getHeaderCallback getHeaderCB)
 decompresses data using the suported type (only LZ77Vram, HUFF, and RLEVram support streaming) More...
 

Detailed Description

wraps the bios decompress functionality into something a bit easier to deal with.

Enumeration Type Documentation

the types of decompression available.

Enumerator
LZ77 

LZ77 decompression.

LZ77Vram 

vram safe LZ77 decompression.

HUFF 

vram safe huff decompression.

RLE 

run length encoded decompression.

RLEVram 

vram safe run length encoded decompression.

Function Documentation

void decompress ( const void *  data,
void *  dst,
DecompressType  type 
)

decompresses data using the suported type

Parameters
dstthe destination to decompress to
datathe data to decompress
typethe type of data to decompress
void decompressStream ( const void *  data,
void *  dst,
DecompressType  type,
getByteCallback  readCB,
getHeaderCallback  getHeaderCB 
)

decompresses data using the suported type (only LZ77Vram, HUFF, and RLEVram support streaming)

Parameters
dstthe destination to decompress to.
datathe data to decompress.
typethe type of data to decompress.
readCBa callback to read the next byte of data.
getHeaderCBa callback to read the 32 byte header.