Encodes .xz Blocks. More...
#include "block_encoder.h"
#include "filter_encoder.h"
#include "check.h"
Data Structures | |
struct | lzma_coder_s |
Functions | |
static lzma_ret | block_encode (lzma_coder *coder, lzma_allocator *allocator, const uint8_t *restrict in, size_t *restrict in_pos, size_t in_size, uint8_t *restrict out, size_t *restrict out_pos, size_t out_size, lzma_action action) |
static void | block_encoder_end (lzma_coder *coder, lzma_allocator *allocator) |
static lzma_ret | block_encoder_update (lzma_coder *coder, lzma_allocator *allocator, const lzma_filter *filters lzma_attribute((unused)), const lzma_filter *reversed_filters) |
lzma_ret | lzma_block_encoder_init (lzma_next_coder *next, lzma_allocator *allocator, lzma_block *block) |
lzma_ret | lzma_block_encoder (lzma_stream *strm, lzma_block *block) |
Initialize .xz Block encoder. |
Encodes .xz Blocks.
lzma_ret lzma_block_encoder | ( | lzma_stream * | strm, | |
lzma_block * | block | |||
) |
Initialize .xz Block encoder.
Valid actions for lzma_code() are LZMA_RUN, LZMA_SYNC_FLUSH (only if the filter chain supports it), and LZMA_FINISH.
References lzma_next_strm_init.