sc68fordevelopers  2.2.1
Functions
/home/mandrake/rpm/BUILD/sc68-2.2.1/file68/ice68.h File Reference

Load a iced file. More...

#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.

Detailed Description

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

Function Documentation

int ice_is_magic ( const void *  buffer)

Test ice file header magic header.

Parameters:
bufferBuffer containing at least 12 bytes from ice header.
Return values:
1buffer seems to be iceped..
0buffer 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:
isStream to load (must be opened in read mode).
ulenPointer to save uncompressed size.
Returns:
Pointer to the unpressed data buffer.
Return values:
0Error
void* ice_load_file ( const char *  fname,
int *  ulen 
)

Load an iced file.

Parameters:
fnameFile to load.
ulenPointer to save uncompressed size.
Returns:
Pointer to the unpressed data buffer.
Return values:
0Error
See also:
ice_load()
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines