< index
< 11. Compression toolkit
< 11.3 Saving the compressed data to a file

=====================================
11.4 Loading compressed data from a file
=====================================

> 11.5 Getting data from the buffer
You can read data from a file (compressed or not) into the buffer.

C++ : int TCODZip::loadFromFile(const char *filename)
C   : int TCOD_zip_load_from_file(TCOD_zip_t zip, const char *filename)


ParameterDescription
zipIn the C version, the buffer handler, returned by the constructor.
filenameName of the file
The function returns the number of (uncompressed) bytes read.
insert a comment