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]
Macros | Functions
infback9.c File Reference
#include "zutil.h"
#include "infback9.h"
#include "inftree9.h"
#include "inflate9.h"
#include "inffix9.h"

Go to the source code of this file.

Macros

#define WSIZE   65536UL
 
#define INITBITS()
 
#define PULL()
 
#define PULLBYTE()
 
#define NEEDBITS(n)
 
#define BITS(n)   ((unsigned)hold & ((1U << (n)) - 1))
 
#define DROPBITS(n)
 
#define BYTEBITS()
 
#define ROOM()
 

Functions

int ZEXPORT inflateBack9Init_ (z_stream FAR *strm, unsigned char FAR *window, const char *version, int stream_size)
 
int ZEXPORT inflateBack9 (z_stream FAR *strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc)
 
int ZEXPORT inflateBack9End (z_stream FAR *strm)
 

Macro Definition Documentation

◆ BITS

#define BITS (   n)    ((unsigned)hold & ((1U << (n)) - 1))

Definition at line 157 of file infback9.c.

◆ BYTEBITS

#define BYTEBITS ( )
Value:
do { \
hold >>= bits & 7; \
bits -= bits & 7; \
} while (0)
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits

Definition at line 168 of file infback9.c.

◆ DROPBITS

#define DROPBITS (   n)
Value:
do { \
hold >>= (n); \
bits -= (unsigned)(n); \
} while (0)
GLdouble n

Definition at line 161 of file infback9.c.

◆ INITBITS

#define INITBITS ( )
Value:
do { \
hold = 0; \
bits = 0; \
} while (0)

Definition at line 117 of file infback9.c.

◆ NEEDBITS

#define NEEDBITS (   n)
Value:
do { \
while (bits < (unsigned)(n)) \
PULLBYTE(); \
} while (0)
GLdouble n
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits

Definition at line 150 of file infback9.c.

◆ PULL

#define PULL ( )
Value:
do { \
if (have == 0) { \
have = in(in_desc, &next); \
if (have == 0) { \
next = Z_NULL; \
ret = Z_BUF_ERROR; \
goto inf_leave; \
} \
} \
} while (0)
#define Z_BUF_ERROR
Definition: zlib.h:139
#define Z_NULL
Definition: zlib.h:164
GLuint in

Definition at line 125 of file infback9.c.

◆ PULLBYTE

#define PULLBYTE ( )
Value:
do { \
PULL(); \
have--; \
hold += (unsigned long)(*next++) << bits; \
bits += 8; \
} while (0)
#define bits
Definition: infblock.c:15
typedef long(ZCALLBACK *tell_file_func) OF((voidpf opaque

Definition at line 139 of file infback9.c.

◆ ROOM

#define ROOM ( )
Value:
do { \
if (left == 0) { \
put = window; \
left = WSIZE; \
wrap = 1; \
if (out(out_desc, put, (unsigned)left)) { \
ret = Z_BUF_ERROR; \
goto inf_leave; \
} \
} \
} while (0)
#define WSIZE
Definition: infback9.c:11
#define Z_BUF_ERROR
Definition: zlib.h:139
GLint left
local int out(void *out_desc, unsigned char *buf, unsigned len)
Definition: gun.c:131

Definition at line 177 of file infback9.c.

◆ WSIZE

#define WSIZE   65536UL

Definition at line 11 of file infback9.c.

Function Documentation

◆ inflateBack9()

int ZEXPORT inflateBack9 ( z_stream FAR strm,
in_func  in,
void FAR in_desc,
out_func  out,
void FAR out_desc 
)

Definition at line 217 of file infback9.c.

References inflate_state::have, inflate_state::next, inflate_state::wrap, and z_const.

◆ inflateBack9End()

int ZEXPORT inflateBack9End ( z_stream FAR strm)

Definition at line 606 of file infback9.c.

References Tracev, Z_NULL, Z_OK, Z_STREAM_ERROR, and ZFREE.

◆ inflateBack9Init_()

int ZEXPORT inflateBack9Init_ ( z_stream FAR strm,
unsigned char FAR window,
const char *  version,
int  stream_size 
)

Definition at line 19 of file infback9.c.