87 if (lzma_block_unpadded_size(block) == 0)
101 const size_t filter_count = (
in[1] & 3U) + 1;
102 for (
size_t i = 0;
i < filter_count; ++
i) {
103 const lzma_ret ret = lzma_filter_flags_decode(
#define LZMA_CHECK_ID_MAX
Maximum valid Check ID.
const lzma_allocator const uint8_t size_t * in_pos
const lzma_allocator const uint8_t size_t in_size
const lzma_allocator * allocator
const lzma_allocator const uint8_t * in
#define lzma_block_header_size_decode(b)
Decode the Block Header Size field.
#define LZMA_FILTERS_MAX
Maximum number of filters in a chain.
Custom functions for memory handling.
Options for the Block and Block Header encoders and decoders.
lzma_vli uncompressed_size
Uncompressed Size in bytes.
lzma_bool ignore_check
A flag to Block decoder to not verify the Check field.
lzma_filter * filters
Array of filters.
uint32_t header_size
Size of the Block Header field.
lzma_check check
Type of integrity Check.
lzma_vli compressed_size
Size of the Compressed Data in bytes.
uint32_t version
Block format version.
void * options
Pointer to filter-specific options structure.
Definitions common to the whole liblzma library.
#define return_if_error(expr)
Return if expression doesn't evaluate to LZMA_OK.
static uint32_t read32le(const uint8_t *buf)
#define LZMA_VLI_UNKNOWN
VLI value to denote that the value is unknown.
lzma_ret
Return values used by several functions in liblzma.
@ LZMA_PROG_ERROR
Programming error.
@ LZMA_DATA_ERROR
Data is corrupt.
@ LZMA_OPTIONS_ERROR
Invalid or unsupported options.
@ LZMA_OK
Operation completed successfully.
void lzma_free(void *ptr, const lzma_allocator *allocator)
Frees memory.