Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
stream_buffer_encoder.c File Reference

Single-call .xz Stream encoder. More...

#include "index.h"

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.
 

Functions

 LZMA_API (size_t)
 Calculate maximum output size for single-call Block encoding.
 
 LZMA_API (lzma_ret)
 

Detailed Description

Single-call .xz Stream encoder.

Macro Definition Documentation

◆ HEADERS_BOUND

#define HEADERS_BOUND   (2 * LZMA_STREAM_HEADER_SIZE + INDEX_BOUND)

Stream Header, Stream Footer, and Index.

◆ INDEX_BOUND

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

Function Documentation

◆ LZMA_API() [1/2]

LZMA_API ( lzma_ret )
extern

◆ LZMA_API() [2/2]

LZMA_API ( size_t )
extern

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().