XZ Utils  5.4.1
Data Fields
lzma_outq Struct Reference

Data Fields

lzma_outbufhead
 
lzma_outbuftail
 
size_t read_pos
 Number of bytes read from head->buf[] in lzma_outq_read() More...
 
lzma_outbufcache
 
uint64_t mem_allocated
 Total amount of memory allocated for buffers. More...
 
uint64_t mem_in_use
 
uint32_t bufs_in_use
 
uint32_t bufs_allocated
 Number of buffers allocated (in use + cached) More...
 
uint32_t bufs_limit
 Maximum allowed number of allocated buffers. More...
 

Field Documentation

◆ head

lzma_outbuf* lzma_outq::head

Linked list of buffers in use. The next output byte will be read from the head and buffers for the next thread will be appended to the tail. tail->next is always NULL.

Referenced by lzma_outq_enable_partial_output(), lzma_outq_end(), lzma_outq_init(), and lzma_outq_is_readable().

◆ read_pos

size_t lzma_outq::read_pos

Number of bytes read from head->buf[] in lzma_outq_read()

Referenced by lzma_outq_is_readable().

◆ cache

lzma_outbuf* lzma_outq::cache

Linked list of allocated buffers that aren't currently used. This way buffers of similar size can be reused and don't need to be reallocated every time. For simplicity, all cached buffers in the list have the same allocated size.

Referenced by lzma_outq_clear_cache(), and lzma_outq_clear_cache2().

◆ mem_allocated

uint64_t lzma_outq::mem_allocated

Total amount of memory allocated for buffers.

◆ mem_in_use

uint64_t lzma_outq::mem_in_use

Amount of memory used by the buffers that are in use in the head...tail linked list.

◆ bufs_in_use

uint32_t lzma_outq::bufs_in_use

Number of buffers in use in the head...tail list. If and only if this is zero, the pointers head and tail above are NULL.

Referenced by lzma_outq_has_buf(), and lzma_outq_is_empty().

◆ bufs_allocated

uint32_t lzma_outq::bufs_allocated

Number of buffers allocated (in use + cached)

◆ bufs_limit

uint32_t lzma_outq::bufs_limit

Maximum allowed number of allocated buffers.

Referenced by lzma_outq_has_buf().


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