Andorra Suite Documentation

Unit AcZLib

Unit dependencies

View fullscreen

Description

This header is part of the FreePascal Project. see http://www.freepascal.org/ for more infromation. Modified by Andreas Stöckel 2009 for Delphi compatibility

Structures

record

Functions

function zlibVersionpchar
:pchar; cdecl; external libz  name 'zlibVersion';
function zlibVersion
:string;
function deflate
(var strm:TZStream; flush:longint):longint; cdecl; external libz  name 'deflate';
function deflateEnd
(var strm:TZStream):longint; cdecl; external libz  name 'deflateEnd';
function inflate
(var strm:TZStream; flush:longint):longint; cdecl; external libz  name 'inflate';
function inflateEnd
(var strm:TZStream):longint; cdecl; external libz  name 'inflateEnd';
function deflateSetDictionary
(var strm:TZStream;dictionary : PByte; dictLength:LongInt):longint; cdecl; external libz  name 'deflateSetDictionary';
function deflateCopy
(var dest,source:TZstream):longint; cdecl; external libz  name 'deflateCopy';
function deflateReset
(var strm:TZStream):longint; cdecl; external libz  name 'deflateReset';
function deflateParams
(var strm:TZStream; level:longint; strategy:longint):longint; cdecl; external libz  name 'deflateParams';
function inflateSetDictionary
(var strm:TZStream;dictionary : PByte; dictLength:LongInt):longint; cdecl; external libz  name 'inflateSetDictionary';
function inflateSync
(var strm:TZStream):longint; cdecl; external libz  name 'inflateSync';
function inflateReset
(var strm:TZStream):longint; cdecl; external libz  name 'inflateReset';
function compress
(dest:PByte;destLen:PLongInt; source : PByte; sourceLen:LongInt):Integer; cdecl; external libz  name 'compress';
function compress2
(dest:PByte;destLen:PLongInt; source : PByte; sourceLen:LongInt; level:Integer):Integer; cdecl; external libz  name 'compress2';
function uncompress
(dest:PByte;destLen:PLongInt; source : PByte; sourceLen:LongInt):Integer; cdecl; external libz  name 'uncompress';
function gzopen
(path:pchar; mode:pchar):gzFile; cdecl; external libz  name 'gzopen';
function gzdopen
(fd:longint; mode:pchar):gzFile; cdecl; external libz  name 'gzdopen';
function gzsetparams
(thefile:gzFile; level:longint; strategy:longint):longint; cdecl; external libz  name 'gzsetparams';
function gzread
(thefile:gzFile; buf:pointer; len:cardinal):longint; cdecl; external libz  name 'gzread';
function gzwrite
(thefile:gzFile; buf:pointer; len:cardinal):longint; cdecl; external libz  name 'gzwrite';
function gzprintf
(thefile:gzFile; format:PByte; args:array of const):longint; cdecl; external libz  name 'gzprintf';
function gzputs
(thefile:gzFile; s:PByte):longint; cdecl; external libz  name 'gzputs';
function gzgets
(thefile:gzFile; buf:PByte; len:longint):PByte; cdecl; external libz  name 'gzgets';
function gzputc
(thefile:gzFile; c:char):char; cdecl; external libz  name 'gzputc';
function gzgetc
(thefile:gzFile):char; cdecl; external libz  name 'gzgetc';
function gzflush
(thefile:gzFile; flush:longint):longint; cdecl; external libz  name 'gzflush';
function gzseek
(thefile:gzFile; offset:LongInt; whence:longint):LongInt; cdecl; external libz  name 'gzseek';
function gzrewind
(thefile:gzFile):longint; cdecl; external libz  name 'gzrewind';
function gztell
(thefile:gzFile):LongInt; cdecl; external libz  name 'gztell';
function gzeof
(thefile:gzFile):longbool; cdecl; external libz  name 'gzeof';
function gzclose
(thefile:gzFile):longint; cdecl; external libz  name 'gzclose';
function gzerror
(thefile:gzFile; var errnum:longint):PByte; cdecl; external libz  name 'gzerror';
function adler32
(adler:LongInt;buf : PByte; len:LongInt):LongInt; cdecl; external libz  name 'adler32';
function crc32
(crc:LongInt;buf : PByte; len:LongInt):LongInt; cdecl; external libz  name 'crc32';
function deflateInit_
(var strm:TZStream; level:longint; version:pchar; stream_size:longint):longint; cdecl; external libz  name 'deflateInit_';
function inflateInit_
(var strm:TZStream; version:pchar; stream_size:longint):longint; cdecl; external libz  name 'inflateInit_';
function deflateInit
(var strm:TZStream;level : longint) : longint;
function inflateInit
(var strm:TZStream) : longint;
function deflateInit2_
(var strm:TZStream; level:longint; method:longint; windowBits:longint; memLevel:longint;strategy:longint; version:pchar; stream_size:longint):longint; cdecl; external libz  name 'deflateInit2_';
function inflateInit2_
(var strm:TZStream; windowBits:longint; version:pchar; stream_size:longint):longint; cdecl; external libz  name 'inflateInit2_';
function deflateInit2
(var strm:TZStream;level,method,windowBits,memLevel,strategy : longint) : longint;
function inflateInit2
(var strm:TZStream;windowBits : longint) : longint;
function zErrorpchar
(err:longint):pchar; cdecl; external libz  name 'zError';
function zError
(err:longint):string;
function inflateSyncPoint
(z:PZstream):longint; cdecl; external libz  name 'inflateSyncPoint';
function get_crc_table
:pointer; cdecl; external libz  name 'get_crc_table';
function zlibAllocMem
(AppData: Pointer; Items, Size: Integer): Pointer; cdecl;
procedure zlibFreeMem
(AppData, Block: Pointer); cdecl;

Constants

ZLIB_VERSION
= '1.2.3';
Needed for array of const
libz
='z';
Z_NO_FLUSH
= 0;
allowed flush values, see Deflate below for details
Z_PARTIAL_FLUSH
= 1;
Z_SYNC_FLUSH
= 2;
Z_FULL_FLUSH
= 3;
Z_FINISH
= 4;
Z_OK
= 0;
Return codes for the compression/decompression functions. Negative values are errors, positive values are used for special but normal events.
Z_STREAM_END
= 1;
Z_NEED_DICT
= 2;
Z_ERRNO
= -(1);
Z_STREAM_ERROR
= -(2);
Z_DATA_ERROR
= -(3);
Z_MEM_ERROR
= -(4);
Z_BUF_ERROR
= -(5);
Z_VERSION_ERROR
= -(6);
Z_NO_COMPRESSION
= 0;
compression levels
Z_BEST_SPEED
= 1;
Z_BEST_COMPRESSION
= 9;
Z_DEFAULT_COMPRESSION
= -(1);
Z_FILTERED
= 1;
compression strategy, see DeflateInit2 below for details
Z_HUFFMAN_ONLY
= 2;
Z_DEFAULT_STRATEGY
= 0;
Z_BINARY
= 0;
possible values of the DataType field
Z_ASCII
= 1;
Z_UNKNOWN
= 2;
Z_DEFLATED
= 8;
the Deflate compression imMethod (the only one supported in this Version)
Z_NULL
= 0;

Types

TAllocfunc
= function (opaque: Pointer; items: Longint; size: LongInt):pointer; cdecl;
TFreeFunc
= procedure (opaque: Pointer; address: Pointer); cdecl;
PInternalState
= ^TInternalstate;
TZStreamRec
= TZStream;
PZstream
= ^TZStream;
gzFile
= pointer;

This page was generated by a documentation system written by Andreas Stoeckel. This system makes use of a modified PasDoc version (download can be found here) and Graphviz.

Get Andorra Commons at SourceForge.net. Fast, secure and Free Open Source software downloads