wraps the bios decompress functionality into something a bit easier to deal with [詳細]
#include <nds/ndstypes.h>型定義 | |
| typedef u8(* | getByteCallback )(u8 *source) |
| typedef int(* | getHeaderCallback )(u8 *source, u16 *dest, u32 arg) |
列挙型 | |
| enum | DecompressType { LZ77, LZ77Vram, HUFF, RLE, RLEVram } |
the types of decompression available [詳細] | |
関数 | |
| void | decompress (const void *data, void *dst, DecompressType type) |
| decompresses data using the suported type | |
| 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) | |
wraps the bios decompress functionality into something a bit easier to deal with
| enum DecompressType |
| decompress | ( | const void * | data, | |
| void * | dst, | |||
| DecompressType | type | |||
| ) |
decompresses data using the suported type
| dst | the destination to decompress to | |
| data | the data to decompress | |
| type | the type of data to decompress |
| 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)
| dst | the destination to decompress to | |
| data | the data to decompress | |
| type | the type of data to decompress | |
| readCB | a callback to read the next byte of data | |
| getHeaderCB | a callback to read the 32 byte header |
1.6.3