Load a iced file.
More...
Go to the source code of this file.
Load a iced file.
- Author
- benjamin gerard
- Date
- 2003/09/06
- Id
- ice68.h,v 1.2 2003/09/22 13:02:40 benjihan Exp
int ice_is_magic |
( |
const void * |
buffer | ) |
|
Test ice file header magic header.
- Parameters
-
buffer | Buffer containing at least 12 bytes from ice header. |
- Return values
-
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.
- Parameters
-
is | Stream to load (must be opened in read mode). |
ulen | Pointer to save uncompressed size. |
- Returns
- Pointer to the unpressed data buffer.
- Return values
-
void* ice_load_file |
( |
const char * |
fname, |
|
|
int * |
ulen |
|
) |
| |
Load an iced file.
- Parameters
-
fname | File to load. |
ulen | Pointer to save uncompressed size. |
- Returns
- Pointer to the unpressed data buffer.
- Return values
-
- See also
- ice_load()