Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
lzma_outbuf_s Struct Reference

#include <outqueue.h>

Data Fields

lzma_outbufnext
 
void * worker
 
size_t allocated
 
size_t pos
 
size_t decoder_in_pos
 
bool finished
 
lzma_ret finish_ret
 
lzma_vli unpadded_size
 
lzma_vli uncompressed_size
 
uint8_t buf []
 Buffer of "allocated" bytes.
 

Field Documentation

◆ allocated

size_t allocated

Amount of memory allocated for buf[]. The worker thread must not modify this.

◆ buf

uint8_t buf

Buffer of "allocated" bytes.

◆ decoder_in_pos

size_t decoder_in_pos

Decompression: Position in the input buffer in the worker thread that matches the output "pos" above. This is used to detect if more output might be possible from the worker thread: if it has consumed all its input, then more output isn't possible.

Note
This is read by another thread and thus access to this variable needs a mutex.

◆ finish_ret

lzma_ret finish_ret

Return value for lzma_outq_read() when the last byte from a finished buffer has been read. Defaults to LZMA_STREAM_END. This must not be LZMA_OK. The idea is to allow a decoder to pass an error code to the main thread, setting the code here together with finished = true.

◆ finished

bool finished

True when no more data will be written into this buffer.

Note
This is read by another thread and thus access to this variable needs a mutex.

◆ next

lzma_outbuf * next

Pointer to the next buffer. This is used for the cached buffers. The worker thread must not modify this.

◆ pos

size_t pos

Writing position in the worker thread or, in other words, the amount of finished data written to buf[] which can be copied out

Note
This is read by another thread and thus access to this variable needs a mutex.

◆ uncompressed_size

lzma_vli uncompressed_size

◆ unpadded_size

lzma_vli unpadded_size

Additional size information. lzma_outq_read() may read these when "finished" is true.

◆ worker

void * worker

This initialized by lzma_outq_get_buf() and is used by lzma_outq_enable_partial_output(). The worker thread must not modify this.


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