Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Functions | Variables
zutil.c File Reference
#include "zutil.h"
#include "gzguts.h"

Go to the source code of this file.

Functions

const char *ZEXPORT zlibVersion ()
 
uLong ZEXPORT zlibCompileFlags ()
 
const char *ZEXPORT zError (int err)
 
void ZLIB_INTERNAL zmemcpy (Bytef *dest, const Bytef *source, uInt len)
 
int ZLIB_INTERNAL zmemcmp (Bytef *s1, const Bytef *s2, uInt len) const
 
void ZLIB_INTERNAL zmemzero (Bytef *dest, uInt len)
 
voidp malloc OF ((uInt size))
 
voidp calloc OF ((uInt items, uInt size))
 
void free OF ((voidpf ptr))
 
voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size)
 
void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
 

Variables

z_const char *const z_errmsg [10]
 

Function Documentation

◆ OF() [1/3]

voidp malloc OF ( (uInt size )

◆ OF() [2/3]

voidp calloc OF ( (uInt items, uInt size )

◆ OF() [3/3]

void free OF ( (voidpf ptr )

◆ zcalloc()

voidpf ZLIB_INTERNAL zcalloc ( voidpf  opaque,
unsigned  items,
unsigned  size 
)

Definition at line 304 of file zutil.c.

References malloc().

◆ zcfree()

void ZLIB_INTERNAL zcfree ( voidpf  opaque,
voidpf  ptr 
)

Definition at line 314 of file zutil.c.

References free(), and ptr.

◆ zError()

const char* ZEXPORT zError ( int  err)

Definition at line 136 of file zutil.c.

References ERR_MSG.

◆ zlibCompileFlags()

uLong ZEXPORT zlibCompileFlags ( )

Definition at line 35 of file zutil.c.

References z_off_t, and ZLIB_INTERNAL.

Referenced by DotZLib.Info::Info(), and main().

◆ zlibVersion()

const char* ZEXPORT zlibVersion ( )

Definition at line 30 of file zutil.c.

References ZLIB_VERSION.

Referenced by help(), and main().

◆ zmemcmp()

int ZLIB_INTERNAL zmemcmp ( Bytef s1,
const Bytef s2,
uInt  len 
) const

Definition at line 163 of file zutil.c.

References s1, and s2.

◆ zmemcpy()

void ZLIB_INTERNAL zmemcpy ( Bytef dest,
const Bytef source,
uInt  len 
)

Definition at line 152 of file zutil.c.

◆ zmemzero()

void ZLIB_INTERNAL zmemzero ( Bytef dest,
uInt  len 
)

Definition at line 176 of file zutil.c.

References Assert, free(), local, malloc(), NULL, OF(), ptr, zcalloc(), zcfree(), and ZLIB_INTERNAL.

Variable Documentation

◆ z_errmsg

z_const char* const z_errmsg[10]
Initial value:
= {
"need dictionary",
"stream end",
"",
"file error",
"stream error",
"data error",
"insufficient memory",
"buffer error",
"incompatible version",
""}

Definition at line 17 of file zutil.c.