DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
 
z_stream Struct Reference
+ Collaboration diagram for z_stream:

Data Fields

unsigned long adler
 adler32 value of the uncompressed data
 
unsigned int avail_in
 number of bytes available at next_in
 
unsigned int avail_out
 remaining free space at next_out
 
int data_type
 best guess about the data type: ascii or binary
 
char * msg
 last error message, NULL if no error
 
unsigned char * next_in
 next input byte
 
unsigned char * next_out
 next output byte should be put there
 
voidopaque
 private data object passed to zalloc and zfree
 
unsigned long reserved
 reserved for future use
 
voidstate
 not visible by applications
 
unsigned long total_in
 total nb of input bytes read so far
 
unsigned long total_out
 total nb of bytes output so far
 
voidzalloc
 used to allocate the internal state
 
voidzfree
 used to free the internal state
 

Detailed Description

Zlib stream (from zlib.h)

Warning
: some pointers we don't use directly have been cast to "void*" for a matter of simplicity

Definition at line 269 of file fs.c.

Field Documentation

◆ adler

unsigned long z_stream::adler

adler32 value of the uncompressed data

Definition at line 287 of file fs.c.

◆ avail_in

unsigned int z_stream::avail_in

number of bytes available at next_in

Definition at line 272 of file fs.c.

Referenced by FS_Deflate(), FS_Inflate(), FS_OpenPackedFile(), FS_Read(), and FS_Seek().

◆ avail_out

unsigned int z_stream::avail_out

remaining free space at next_out

Definition at line 276 of file fs.c.

Referenced by FS_Deflate(), FS_Inflate(), FS_OpenPackedFile(), and FS_Read().

◆ data_type

int z_stream::data_type

best guess about the data type: ascii or binary

Definition at line 286 of file fs.c.

◆ msg

char* z_stream::msg

last error message, NULL if no error

Definition at line 279 of file fs.c.

◆ next_in

unsigned char* z_stream::next_in

next input byte

Definition at line 271 of file fs.c.

Referenced by FS_Deflate(), FS_Inflate(), FS_OpenPackedFile(), FS_Read(), and FS_Seek().

◆ next_out

unsigned char* z_stream::next_out

next output byte should be put there

Definition at line 275 of file fs.c.

Referenced by FS_Deflate(), FS_Inflate(), FS_OpenPackedFile(), and FS_Read().

◆ opaque

void* z_stream::opaque

private data object passed to zalloc and zfree

Definition at line 284 of file fs.c.

Referenced by FS_Deflate(), and FS_Inflate().

◆ reserved

unsigned long z_stream::reserved

reserved for future use

Definition at line 288 of file fs.c.

◆ state

void* z_stream::state

not visible by applications

Definition at line 280 of file fs.c.

◆ total_in

unsigned long z_stream::total_in

total nb of input bytes read so far

Definition at line 273 of file fs.c.

Referenced by FS_Inflate().

◆ total_out

unsigned long z_stream::total_out

total nb of bytes output so far

Definition at line 277 of file fs.c.

Referenced by FS_Deflate().

◆ zalloc

void* z_stream::zalloc

used to allocate the internal state

Definition at line 282 of file fs.c.

Referenced by FS_Deflate(), and FS_Inflate().

◆ zfree

void* z_stream::zfree

used to free the internal state

Definition at line 283 of file fs.c.

Referenced by FS_Deflate(), and FS_Inflate().


The documentation for this struct was generated from the following file: