src/liblzma/common/stream_buffer_encoder.c File Reference

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)

Detailed Description

Single-call .xz Stream encoder.


Define Documentation

#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.


Function Documentation

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.


Generated on Tue Oct 6 14:02:22 2009 for XZ Utils by  doxygen 1.6.1