Rizin
unix-like reverse engineering framework and cli tools
|
LZMA2 encoder. More...
#include "common.h"
Go to the source code of this file.
Macros | |
#define | LZMA2_CHUNK_MAX (UINT32_C(1) << 16) |
Maximum number of bytes of actual data per chunk (no headers) More... | |
#define | LZMA2_UNCOMPRESSED_MAX (UINT32_C(1) << 21) |
Maximum uncompressed size of LZMA chunk (no headers) More... | |
#define | LZMA2_HEADER_MAX 6 |
Maximum size of LZMA2 headers. More... | |
#define | LZMA2_HEADER_UNCOMPRESSED 3 |
Size of a header for uncompressed chunk. More... | |
Functions | |
lzma_ret | lzma_lzma2_encoder_init (lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter_info *filters) |
uint64_t | lzma_lzma2_encoder_memusage (const void *options) |
lzma_ret | lzma_lzma2_props_encode (const void *options, uint8_t *out) |
uint64_t | lzma_lzma2_block_size (const void *options) |
LZMA2 encoder.
Definition in file lzma2_encoder.h.
#define LZMA2_CHUNK_MAX (UINT32_C(1) << 16) |
Maximum number of bytes of actual data per chunk (no headers)
Definition at line 21 of file lzma2_encoder.h.
#define LZMA2_HEADER_MAX 6 |
Maximum size of LZMA2 headers.
Definition at line 27 of file lzma2_encoder.h.
#define LZMA2_HEADER_UNCOMPRESSED 3 |
Size of a header for uncompressed chunk.
Definition at line 30 of file lzma2_encoder.h.
#define LZMA2_UNCOMPRESSED_MAX (UINT32_C(1) << 21) |
Maximum uncompressed size of LZMA chunk (no headers)
Definition at line 24 of file lzma2_encoder.h.
Definition at line 404 of file lzma2_encoder.c.
References lzma_options_lzma::dict_size, my_max, options, and UINT64_C.
lzma_ret lzma_lzma2_encoder_init | ( | lzma_next_coder * | next, |
const lzma_allocator * | allocator, | ||
const lzma_filter_info * | filters | ||
) |
Definition at line 359 of file lzma2_encoder.c.
References allocator, filters, lzma2_encoder_init(), and lzma_lz_encoder_init().
Definition at line 368 of file lzma2_encoder.c.
References lzma_lzma_encoder_memusage(), options, and UINT64_MAX.
Definition at line 379 of file lzma2_encoder.c.
References d, lzma_options_lzma::dict_size, get_dist_slot(), LZMA_DICT_SIZE_MIN, LZMA_OK, my_max, options, out, and UINT32_MAX.