Rizin
unix-like reverse engineering framework and cli tools
|
Single-call .xz Stream encoder. More...
#include "index.h"
Go to the source code of this file.
Macros | |
#define | INDEX_BOUND ((1 + 1 + 2 * LZMA_VLI_BYTES_MAX + 4 + 3) & ~3) |
#define | HEADERS_BOUND (2 * LZMA_STREAM_HEADER_SIZE + INDEX_BOUND) |
Stream Header, Stream Footer, and Index. More... | |
Functions | |
LZMA_API (size_t) | |
Calculate maximum output size for single-call Block encoding. More... | |
LZMA_API (lzma_ret) | |
Single-call .xz Stream encoder.
Definition in file stream_buffer_encoder.c.
#define HEADERS_BOUND (2 * LZMA_STREAM_HEADER_SIZE + INDEX_BOUND) |
Stream Header, Stream Footer, and Index.
Definition at line 22 of file stream_buffer_encoder.c.
#define INDEX_BOUND ((1 + 1 + 2 * LZMA_VLI_BYTES_MAX + 4 + 3) & ~3) |
Maximum size of Index that has exactly one Record. Index Indicator + Number of Records + Record + CRC32 rounded up to the next multiple of four.
Definition at line 19 of file stream_buffer_encoder.c.
LZMA_API | ( | lzma_ret | ) |
Definition at line 43 of file stream_buffer_encoder.c.
References allocator, lzma_stream_flags::backward_size, check, filters, i, in, in_size, LZMA_BUF_ERROR, LZMA_CHECK_ID_MAX, LZMA_MEM_ERROR, LZMA_OK, LZMA_PROG_ERROR, LZMA_STREAM_HEADER_SIZE, LZMA_UNSUPPORTED_CHECK, NULL, out, out_pos, return_if_error, lzma_block::uncompressed_size, lzma_block::version, and lzma_stream_flags::version.
LZMA_API | ( | size_t | ) |
Calculate maximum output size for single-call Block encoding.
Calculate output buffer size for single-call Stream encoder.
This is equivalent to lzma_stream_buffer_bound() but for .xz Blocks. See the documentation of lzma_stream_buffer_bound().
Definition at line 25 of file stream_buffer_encoder.c.
References HEADERS_BOUND, lzma_block_buffer_bound64(), LZMA_VLI_MAX, my_min, SIZE_MAX, and uncompressed_size.