Tor  0.4.6.0-alpha-dev
Data Fields
tor_zlib_compress_state_t Struct Reference

Data Fields

struct z_stream_s stream
 
int compress
 
size_t input_so_far
 
size_t output_so_far
 
size_t allocation
 

Detailed Description

Internal zlib state for an incremental compression/decompression. The body of this struct is not exposed.

Internal state for an incremental zlib/gzip compression/decompression.

Definition at line 110 of file compress_zlib.c.

Field Documentation

◆ allocation

size_t allocation

Approximate number of bytes allocated for this object.

Definition at line 120 of file compress_zlib.c.

Referenced by tor_zlib_compress_free_(), and tor_zlib_compress_state_size().

◆ compress

int compress

True if we are compressing; false if we are inflating

Definition at line 112 of file compress_zlib.c.

Referenced by tor_zlib_compress_free_().

◆ input_so_far

size_t input_so_far

Number of bytes read so far. Used to detect zlib bombs.

Definition at line 115 of file compress_zlib.c.

◆ output_so_far

size_t output_so_far

Number of bytes written so far. Used to detect zlib bombs.

Definition at line 117 of file compress_zlib.c.

◆ stream

struct z_stream_s stream

The zlib stream

Definition at line 301 of file compress_zlib.c.

Referenced by tor_zlib_compress_free_().


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