Single-call .xz Stream encoder. More...
#include "index.h"
Defines | |
#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. | |
Functions | |
LZMA_API (size_t) | |
Calculate maximum output buffer size for single-call encoding. | |
LZMA_API (lzma_ret) |
Single-call .xz Stream encoder.
#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.
#define HEADERS_BOUND (2 * LZMA_STREAM_HEADER_SIZE + INDEX_BOUND) |
Stream Header, Stream Footer, and Index.
LZMA_API | ( | size_t | ) |
Calculate maximum output buffer size for single-call 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().
References HEADERS_BOUND, and LZMA_VLI_MAX.