Decodes Block Header from .xz files. More...
#include "common.h"#include "check.h"Functions | |
| static void | free_properties (lzma_block *block, lzma_allocator *allocator) |
| lzma_ret | lzma_block_header_decode (lzma_block *block, lzma_allocator *allocator, const uint8_t *in) |
| Decode Block Header. | |
Decodes Block Header from .xz files.
| lzma_ret lzma_block_header_decode | ( | lzma_block * | block, | |
| lzma_allocator * | allocator, | |||
| const uint8_t * | in | |||
| ) |
Decode Block Header.
The size of the Block Header must have already been decoded with lzma_block_header_size_decode() macro and stored to block->header_size. block->filters must have been allocated, but not necessarily initialized. Possible existing filter options are _not_ freed.
| block | Destination for block options with header_size properly initialized. | |
| allocator | lzma_allocator for custom allocator functions. Set to NULL to use malloc() (and also free() if an error occurs). | |
| in | Beginning of the input buffer. This must be at least block->header_size bytes. |
References lzma_block_header_size_decode, lzma_block_unpadded_size(), LZMA_CHECK_ID_MAX, lzma_crc32(), LZMA_DATA_ERROR, lzma_filter_flags_decode(), LZMA_FILTERS_MAX, LZMA_OK, LZMA_OPTIONS_ERROR, LZMA_PROG_ERROR, lzma_vli_decode(), LZMA_VLI_UNKNOWN, and return_if_error.
1.6.1