Function prototypes for zlib library written by Jean-loup Gailly - http://www.zlib.net/
If the zlib library is not already available on the system default libraries path you can set the full path to the downloaded library by using ZLIB_LIB preprocessor.
| zlib-prototype.p | Function prototypes for zlib library written by Jean-loup Gailly - http://www.zlib.net/ |
Preprocessors | |
| ZLIB_LIB | The full path to the Zlib shared library (.dll for Windows, .so for *nix) . |
Procedures | |
| compress | Compresses the data from input buffer into destination memory buffer that will hold the compressed data. |
| uncompress | Uncompresses the data from input buffer into destination memory buffer that will hold the uncompressed data. |
| compressBound | Return the minimum buffer allocation size for holding compressed data for given input buffer size. |
| gzopen | Open gzip file for read/write. |
| gzclose | Close the gzip file pointer. |
| gzread | Read from gzip file in a allocated memory buffer. |
| gzputs | Write uncompressed string to a gzip file; need to be open with ‘w’ or ‘a. |
| gzwrite | Write uncompressed data from a memory buffer to a gzip file. |
procedure compress external {&ZLIB_LIB} cdecl persistent
Compresses the data from input buffer into destination memory buffer that will hold the compressed data.
return code, 0 if OK
procedure uncompress external {&ZLIB_LIB} cdecl persistent
Uncompresses the data from input buffer into destination memory buffer that will hold the uncompressed data.
return code, 0 if OK