XZ Utils  5.1.0alpha
Data Fields
lzma_stream Struct Reference

Passing data to and from liblzma. More...

#include <base.h>

Data Fields

const uint8_t * next_in
 
size_t avail_in
 
uint64_t total_in
 
uint8_t * next_out
 
size_t avail_out
 
uint64_t total_out
 
lzma_allocatorallocator
 Custom memory allocation functions. More...
 
lzma_internalinternal
 
void * reserved_ptr1
 
void * reserved_ptr2
 
void * reserved_ptr3
 
void * reserved_ptr4
 
uint64_t reserved_int1
 
uint64_t reserved_int2
 
size_t reserved_int3
 
size_t reserved_int4
 
lzma_reserved_enum reserved_enum1
 
lzma_reserved_enum reserved_enum2
 

Detailed Description

Passing data to and from liblzma.

The lzma_stream structure is used for

Typical usage:

Application may modify the values of total_in and total_out as it wants. They are updated by liblzma to match the amount of data read and written, but aren't used for anything else.

Field Documentation

const uint8_t* lzma_stream::next_in

Pointer to the next input byte.

Referenced by coder_normal(), coder_run(), lzma_code(), parse_indexes(), and parse_options().

size_t lzma_stream::avail_in

Number of available input bytes in next_in.

Referenced by coder_normal(), coder_passthru(), coder_run(), is_format_lzma(), is_format_xz(), lzma_code(), parse_indexes(), and parse_options().

uint64_t lzma_stream::total_in

Total number of bytes read by liblzma.

Referenced by coder_passthru(), lzma_code(), lzma_strm_init(), and progress_pos().

uint8_t* lzma_stream::next_out

Pointer to the next output position.

Referenced by coder_init(), coder_normal(), lzma_code(), and parse_options().

size_t lzma_stream::avail_out

Amount of free space in next_out.

Referenced by coder_init(), coder_normal(), lzma_code(), and parse_options().

uint64_t lzma_stream::total_out

Total number of bytes written by liblzma.

Referenced by coder_passthru(), lzma_code(), lzma_strm_init(), and progress_pos().

lzma_allocator* lzma_stream::allocator

Custom memory allocation functions.

In most cases this is NULL which makes liblzma use the standard malloc() and free().

Referenced by lzma_code(), lzma_end(), lzma_filters_update(), and lzma_strm_init().

lzma_internal* lzma_stream::internal

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