Files | |
file | unice68.h |
ICE depacker. | |
Functions | |
int | unice68_ice_version (void) |
Get ICE depacker version. | |
int | unice68_get_depacked_size (const void *buffer, int *p_csize) |
Test ICE and get compressed and uncompresed size. | |
int | unice68_depacker (void *dest, const void *src) |
Depack an ICE buffer to another. |
|
Get ICE depacker version.
|
|
Test ICE and get compressed and uncompresed size. The unice68_get_depacked_size() function returns the uncompressed size of a ICE compressed buffer. If p_size is not 0 it is fill with the size of the compressed data found in header (useful for stream operation). If the value pointed by p_csize is not 0 the function assumes that it is an expected compressed size and compares it to header one. If it differs the function returns the bitwise NOT value of uncompressed data. This should be a minus value but not -1.
|
|
Depack an ICE buffer to another. The unice68_depacker() depack src ICE compressed buffer to dest. The dest buffer is assumed to be already allocated with enought room.
|