Single-call raw encoding. More...
#include "filter_encoder.h"Functions | |
| lzma_ret | lzma_raw_buffer_encode (const lzma_filter *filters, lzma_allocator *allocator, const uint8_t *in, size_t in_size, uint8_t *out, size_t *out_pos, size_t out_size) |
| Single-call raw encoder. | |
Single-call raw encoding.
| lzma_ret lzma_raw_buffer_encode | ( | const lzma_filter * | filters, | |
| lzma_allocator * | allocator, | |||
| const uint8_t * | in, | |||
| size_t | in_size, | |||
| uint8_t * | out, | |||
| size_t * | out_pos, | |||
| size_t | out_size | |||
| ) |
Single-call raw encoder.
| filters | Array of lzma_filter structures. The end of the array must be marked with .id = LZMA_VLI_UNKNOWN. | |
| allocator | lzma_allocator for custom allocator functions. Set to NULL to use malloc() and free(). | |
| in | Beginning of the input buffer | |
| in_size | Size of the input buffer | |
| out | Beginning of the output buffer | |
| out_pos | The next byte will be written to out[*out_pos]. *out_pos is updated only if encoding succeeds. | |
| out_size | Size of the out buffer; the first byte into which no data is written to is out[out_size]. |
References lzma_next_coder_s::code, lzma_next_coder_s::coder, LZMA_FINISH, LZMA_OK, LZMA_STREAM_END, and return_if_error.
1.7.1