Rizin
unix-like reverse engineering framework and cli tools
|
Passing data to and from liblzma. More...
#include <base.h>
Public Attributes | |
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 |
const lzma_allocator * | allocator |
Custom memory allocation functions. More... | |
lzma_internal * | internal |
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 |
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 except as a possible return values from lzma_get_progress().
const lzma_allocator* lzma_stream::allocator |
Custom memory allocation functions.
In most cases this is NULL which makes liblzma use the standard malloc() and free().
Definition at line 502 of file base.h.
Referenced by LZMA_API(), and lzma_strm_init().
size_t lzma_stream::avail_in |
Number of available input bytes in next_in.
Definition at line 487 of file base.h.
Referenced by coder_loop(), coder_normal(), coder_passthru(), coder_run(), compress(), decompress(), def(), deflate(), deflate_index_build(), deflate_index_extract(), deflateParams(), deflateSetDictionary(), encode(), gunpipe(), gz_avail(), gz_comp(), gz_decomp(), gz_fetch(), gz_look(), gz_zero(), gzcopy(), gzip_normalize(), gzprintf(), gzputc(), gzscan(), gzsetparams(), gztack(), inf(), inflate(), inflate_fast(), inflateBack(), inflateBack9(), inflateSync(), log_compress(), LZMA_API(), main(), parse_indexes(), read_buf(), uncompress(), xz_compress(), xz_decompress(), and zpull().
size_t lzma_stream::avail_out |
Amount of free space in next_out.
Definition at line 491 of file base.h.
Referenced by coder_loop(), coder_normal(), coder_write_output(), compress(), decompress(), def(), deflate(), deflate_index_build(), deflate_index_extract(), encode(), flush_pending(), gz_comp(), gz_decomp(), gz_fetch(), gz_init(), gzcopy(), gzip_normalize(), gzscan(), gztack(), inf(), inflate(), inflate_fast(), log_compress(), LZMA_API(), main(), uncompress(), xz_compress(), and xz_decompress().
lzma_internal* lzma_stream::internal |
Internal state is not visible to applications.
Definition at line 505 of file base.h.
Referenced by LZMA_API(), and lzma_strm_init().
Pointer to the next input byte.
Definition at line 486 of file base.h.
Referenced by coder_loop(), coder_normal(), coder_run(), compress(), decompress(), def(), deflate(), deflate_index_build(), deflate_index_extract(), deflateSetDictionary(), encode(), gunpipe(), gunzip(), gz_avail(), gz_comp(), gz_init(), gz_look(), gz_zero(), gzcopy(), gzip_normalize(), gzprintf(), gzputc(), gzscan(), gztack(), inf(), inflate(), inflate_fast(), inflateBack(), inflateBack9(), inflateSync(), log_compress(), lunpipe(), LZMA_API(), main(), parse_indexes(), read_buf(), uncompress(), xz_compress(), xz_decompress(), and zpull().
uint8_t* lzma_stream::next_out |
Pointer to the next output position.
Definition at line 490 of file base.h.
Referenced by coder_loop(), coder_normal(), coder_write_output(), compress(), decompress(), def(), deflate(), deflate_index_build(), deflate_index_extract(), encode(), flush_pending(), gz_comp(), gz_decomp(), gz_fetch(), gz_init(), gzcopy(), gzip_normalize(), gzscan(), gztack(), inf(), inflate(), inflate_fast(), log_compress(), LZMA_API(), main(), uncompress(), xz_compress(), and xz_decompress().
lzma_reserved_enum lzma_stream::reserved_enum1 |
Definition at line 521 of file base.h.
Referenced by LZMA_API().
lzma_reserved_enum lzma_stream::reserved_enum2 |
Definition at line 522 of file base.h.
Referenced by LZMA_API().
uint64_t lzma_stream::reserved_int1 |
Definition at line 517 of file base.h.
Referenced by LZMA_API().
uint64_t lzma_stream::reserved_int2 |
Definition at line 518 of file base.h.
Referenced by LZMA_API().
size_t lzma_stream::reserved_int3 |
Definition at line 519 of file base.h.
Referenced by LZMA_API().
size_t lzma_stream::reserved_int4 |
Definition at line 520 of file base.h.
Referenced by LZMA_API().
void* lzma_stream::reserved_ptr1 |
Definition at line 513 of file base.h.
Referenced by LZMA_API().
void* lzma_stream::reserved_ptr2 |
Definition at line 514 of file base.h.
Referenced by LZMA_API().
void* lzma_stream::reserved_ptr3 |
Definition at line 515 of file base.h.
Referenced by LZMA_API().
void* lzma_stream::reserved_ptr4 |
Definition at line 516 of file base.h.
Referenced by LZMA_API().
uint64_t lzma_stream::total_in |
Total number of bytes read by liblzma.
Definition at line 488 of file base.h.
Referenced by coder_loop(), coder_passthru(), decompress(), deflate(), deflateResetKeep(), gzscan(), gztack(), inflate(), inflateResetKeep(), inflateSync(), LZMA_API(), lzma_strm_init(), main(), progress_pos(), and read_buf().
uint64_t lzma_stream::total_out |
Total number of bytes written by liblzma.
Definition at line 492 of file base.h.
Referenced by coder_loop(), coder_passthru(), decompress(), deflateResetKeep(), flush_pending(), gzscan(), inflate(), inflateResetKeep(), inflateSync(), LZMA_API(), lzma_strm_init(), main(), and progress_pos().