Unit ZUtil

Classes

Functions

zcalloc - Delphi 2,3 } {$endif} {$ENDIF} {$ENDIF
zcfree -
zmemcmp -
zmemcpy -
zmemzero -

Types

Bytef
charf
int
intf
Long
pBytef
pcharf
pIntf
ptr2int
puchf
puchfArray
PuIntArray
puIntf
puLong
pushf
pushfArray
pzByteArray
pzIntfArray
uch
uchf
uInt
uIntf
ulg
uLong
uLongf
unsigned
ush
ushf
voidp
voidpf
zByteArray
zIntfArray
zuchfArray
zuIntArray
zushfArray

Constants

Variables


Functions


function zcalloc (opaque : voidpf; items : uInt; size : uInt) : voidpf;

Delphi 2,3 } {$endif} {$ENDIF} {$ENDIF

procedure zcfree(opaque : voidpf; ptr : voidpf);


function zmemcmp(s1p, s2p : pBytef; len : uInt) : int;


procedure zmemcpy(destp : pBytef; sourcep : pBytef; len : uInt);


procedure zmemzero(destp : pBytef; len : uInt);


Types


Bytef  = byte
Byte = usigned char; 8 bits
charf  = byte

int    = integer

intf   = int

Long   = longint

pBytef = ^Bytef

pcharf = ^charf

pIntf  = ^intf

ptr2int = uInt

puchf = ^uchf

puchfArray = ^zuchfArray

PuIntArray = ^zuIntArray

puIntf = ^uIntf

puLong = ^uLongf

pushf = ^ushf

pushfArray = ^zushfArray

pzByteArray = ^zByteArray

pzIntfArray = ^zIntfArray

uch  = Byte
Type declarations - only for deflate
uchf = uch

uInt   = cardinal

uIntf  = uInt
16 bits or more } {$ENDIF
ulg  = LongInt

uLong  = LongInt

uLongf = uLong
32 bits or more
unsigned = uInt

ush  = Word
FAR
ushf = ush

voidp  = pointer

voidpf = voidp

zByteArray = array[0..(MaxInt div SizeOf(Bytef))-1] of Bytef;
a pointer to integer casting is used to do pointer arithmetic. ptr2int must be an integer type and sizeof(ptr2int) must be less than sizeof(pointer) - Nomssi
zIntfArray = array[0..(MaxInt div SizeOf(Intf))-1] of Intf;

zuchfArray = zByteArray

zuIntArray = array[0..(MaxInt div SizeOf(uInt))-1] of uInt;

zushfArray = array[0..(MaxInt div SizeOf(ushf))-1] of ushf;

Constants


Variables