Rizin
unix-like reverse engineering framework and cli tools
lzma_stream_coder_s Struct Reference

Public Types

enum  { SEQ_STREAM_HEADER , SEQ_BLOCK , SEQ_INDEX , SEQ_STREAM_FOOTER }
 

Public Attributes

enum lzma_stream_coder_s:: { ... }  sequence
 
size_t block_size
 
lzma_filter filters [LZMA_FILTERS_MAX+1]
 The filter chain currently in use. More...
 
lzma_indexindex
 Index to hold sizes of the Blocks. More...
 
lzma_next_coder index_encoder
 Index encoder. More...
 
lzma_stream_flags stream_flags
 Stream Flags for encoding the Stream Header and Stream Footer. More...
 
uint8_t header [LZMA_STREAM_HEADER_SIZE]
 Buffer to hold Stream Header and Stream Footer. More...
 
size_t header_pos
 Read position in header[]. More...
 
lzma_outq outq
 Output buffer queue for compressed data. More...
 
uint32_t timeout
 
lzma_ret thread_error
 Error code from a worker thread. More...
 
worker_threadthreads
 Array of allocated thread-specific structures. More...
 
uint32_t threads_max
 
uint32_t threads_initialized
 
worker_threadthreads_free
 
worker_threadthr
 
uint64_t progress_in
 
uint64_t progress_out
 
mythread_mutex mutex
 
mythread_cond cond
 

Detailed Description

Definition at line 100 of file stream_encoder_mt.c.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SEQ_STREAM_HEADER 
SEQ_BLOCK 
SEQ_INDEX 
SEQ_STREAM_FOOTER 

Definition at line 101 of file stream_encoder_mt.c.

Member Data Documentation

◆ block_size

size_t lzma_stream_coder_s::block_size

Start a new Block every block_size bytes of input unless LZMA_FULL_FLUSH or LZMA_FULL_BARRIER is used earlier.

Definition at line 110 of file stream_encoder_mt.c.

◆ cond

mythread_cond lzma_stream_coder_s::cond

Definition at line 176 of file stream_encoder_mt.c.

◆ filters

lzma_filter lzma_stream_coder_s::filters[LZMA_FILTERS_MAX+1]

The filter chain currently in use.

Definition at line 113 of file stream_encoder_mt.c.

◆ header

uint8_t lzma_stream_coder_s::header[LZMA_STREAM_HEADER_SIZE]

Buffer to hold Stream Header and Stream Footer.

Definition at line 127 of file stream_encoder_mt.c.

◆ header_pos

size_t lzma_stream_coder_s::header_pos

Read position in header[].

Definition at line 130 of file stream_encoder_mt.c.

◆ index

lzma_index* lzma_stream_coder_s::index

Index to hold sizes of the Blocks.

Definition at line 117 of file stream_encoder_mt.c.

◆ index_encoder

lzma_next_coder lzma_stream_coder_s::index_encoder

Index encoder.

Definition at line 120 of file stream_encoder_mt.c.

◆ mutex

mythread_mutex lzma_stream_coder_s::mutex

Definition at line 175 of file stream_encoder_mt.c.

◆ outq

lzma_outq lzma_stream_coder_s::outq

Output buffer queue for compressed data.

Definition at line 134 of file stream_encoder_mt.c.

◆ progress_in

uint64_t lzma_stream_coder_s::progress_in

Amount of uncompressed data in Blocks that have already been finished.

Definition at line 168 of file stream_encoder_mt.c.

◆ progress_out

uint64_t lzma_stream_coder_s::progress_out

Amount of compressed data in Stream Header + Blocks that have already been finished.

Definition at line 172 of file stream_encoder_mt.c.

◆ 

enum { ... } lzma_stream_coder_s::sequence

◆ stream_flags

lzma_stream_flags lzma_stream_coder_s::stream_flags

Stream Flags for encoding the Stream Header and Stream Footer.

Definition at line 124 of file stream_encoder_mt.c.

◆ thr

worker_thread* lzma_stream_coder_s::thr

The most recent worker thread to which the main thread writes the new input from the application.

Definition at line 163 of file stream_encoder_mt.c.

◆ thread_error

lzma_ret lzma_stream_coder_s::thread_error

Error code from a worker thread.

Definition at line 143 of file stream_encoder_mt.c.

◆ threads

worker_thread* lzma_stream_coder_s::threads

Array of allocated thread-specific structures.

Definition at line 146 of file stream_encoder_mt.c.

◆ threads_free

worker_thread* lzma_stream_coder_s::threads_free

Stack of free threads. When a thread finishes, it puts itself back into this stack. This starts as empty because threads are created only when actually needed.

Definition at line 159 of file stream_encoder_mt.c.

◆ threads_initialized

uint32_t lzma_stream_coder_s::threads_initialized

Number of thread structures that have been initialized, and thus the number of worker threads actually created so far.

Definition at line 154 of file stream_encoder_mt.c.

◆ threads_max

uint32_t lzma_stream_coder_s::threads_max

Number of structures in "threads" above. This is also the number of threads that will be created at maximum.

Definition at line 150 of file stream_encoder_mt.c.

◆ timeout

uint32_t lzma_stream_coder_s::timeout

Maximum wait time if cannot use all the input and cannot fill the output buffer. This is in milliseconds.

Definition at line 139 of file stream_encoder_mt.c.


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