#include "file68/istream68.h"
Go to the source code of this file.
Functions | |
| int | ice_is_magic (const void *buffer) |
| Test ice file header magic header. | |
| void * | ice_load (istream_t *is, int *ulen) |
| Load an iced stream. | |
| void * | ice_load_file (const char *fname, int *ulen) |
| Load an iced file. | |
| int ice_is_magic | ( | const void * | buffer | ) |
Test ice file header magic header.
| buffer | Buffer containing at least 12 bytes from ice header. |
| 1 | buffer seems to be iceped.. | |
| 0 | buffer is not iceped. |
| void* ice_load | ( | istream_t * | is, | |
| int * | ulen | |||
| ) |
Load an iced stream.
The ice_load() function loads and depack an ice packed file from a stream and returns a allocate buffer with unpacked data.
| is | Stream to load (must be opened in read mode). | |
| ulen | Pointer to save uncompressed size. |
| 0 | Error |
| void* ice_load_file | ( | const char * | fname, | |
| int * | ulen | |||
| ) |
Load an iced file.
| fname | File to load. | |
| ulen | Pointer to save uncompressed size. |
| 0 | Error |
1.5.2