Tor  0.4.7.0-alpha-dev
Data Fields
tor_zstd_compress_state_t Struct Reference

Data Fields

int compress
 
int have_called_end
 
size_t input_so_far
 
size_t output_so_far
 
size_t allocation
 

Detailed Description

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

Internal state for an incremental Zstandard compression/decompression.

Definition at line 135 of file compress_zstd.c.

Field Documentation

◆ allocation

size_t allocation

Approximate number of bytes allocated for this object.

Definition at line 155 of file compress_zstd.c.

Referenced by tor_zstd_compress_free_(), and tor_zstd_compress_state_size().

◆ compress

int compress

True if we are compressing; false if we are inflating

Definition at line 145 of file compress_zstd.c.

Referenced by tor_zstd_compress_free_().

◆ have_called_end

int have_called_end

True if we are compressing and we've called ZSTD_endStream

Definition at line 146 of file compress_zstd.c.

◆ input_so_far

size_t input_so_far

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

Definition at line 150 of file compress_zstd.c.

◆ output_so_far

size_t output_so_far

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

Definition at line 152 of file compress_zstd.c.


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