Rizin
unix-like reverse engineering framework and cli tools
|
Encodes the Index field. More...
Go to the source code of this file.
Classes | |
struct | lzma_index_coder |
Functions | |
static lzma_ret | index_encode (void *coder_ptr, const lzma_allocator *allocator lzma_attribute((__unused__)), const uint8_t *restrict in lzma_attribute((__unused__)), size_t *restrict in_pos lzma_attribute((__unused__)), size_t in_size lzma_attribute((__unused__)), uint8_t *restrict out, size_t *restrict out_pos, size_t out_size, lzma_action action lzma_attribute((__unused__))) |
static void | index_encoder_end (void *coder, const lzma_allocator *allocator) |
static void | index_encoder_reset (lzma_index_coder *coder, const lzma_index *i) |
lzma_ret | lzma_index_encoder_init (lzma_next_coder *next, const lzma_allocator *allocator, const lzma_index *i) |
LZMA_API (lzma_ret) | |
Encodes the Index field.
Definition in file index_encoder.c.
|
static |
Definition at line 44 of file index_encoder.c.
References assert(), lzma_index_iter::block, count, lzma_index_coder::crc32, lzma_index_coder::index, lzma_index_coder::iter, LZMA_INDEX_ITER_BLOCK, lzma_index_padding_size(), LZMA_OK, LZMA_PROG_ERROR, LZMA_STREAM_END, out, out_pos, lzma_index_coder::pos, lzma_index_coder::sequence, lzma_index_iter::uncompressed_size, and lzma_index_iter::unpadded_size.
Referenced by lzma_index_encoder_init().
|
static |
Definition at line 164 of file index_encoder.c.
References allocator, and lzma_free().
Referenced by lzma_index_encoder_init().
|
static |
Definition at line 172 of file index_encoder.c.
References lzma_index_coder::crc32, i, lzma_index_coder::index, lzma_index_coder::iter, lzma_index_coder::pos, and lzma_index_coder::sequence.
Referenced by lzma_index_encoder_init().
LZMA_API | ( | lzma_ret | ) |
Definition at line 209 of file index_encoder.c.
References i, lzma_stream::internal, LZMA_FINISH, lzma_index_encoder_init(), lzma_next_strm_init, LZMA_OK, LZMA_RUN, strm, and lzma_internal_s::supported_actions.
lzma_ret lzma_index_encoder_init | ( | lzma_next_coder * | next, |
const lzma_allocator * | allocator, | ||
const lzma_index * | i | ||
) |
Definition at line 186 of file index_encoder.c.
References allocator, lzma_next_coder_s::code, lzma_next_coder_s::coder, lzma_next_coder_s::end, i, index_encode(), index_encoder_end(), index_encoder_reset(), lzma_alloc(), LZMA_MEM_ERROR, lzma_next_coder_init, LZMA_OK, LZMA_PROG_ERROR, and NULL.
Referenced by LZMA_API(), stream_encode(), and stream_encode_mt().