19 #include <sys/types.h>
21 #include <sys/unistd.h>
28 #define BUFFER_SIZE (1U << 20)
71 if (lzma_block_header_size(&block) !=
LZMA_OK)
114 .check = block.
check,
117 if (lzma_stream_header_encode(&sf,
out) !=
LZMA_OK)
120 if (lzma_stream_footer_encode(&sf,
out + out_size) !=
LZMA_OK)
126 fwrite(
out, 1, out_size, stdout);
const lzma_allocator const uint8_t size_t in_size
const lzma_allocator const uint8_t * in
const lzma_allocator const uint8_t size_t uint8_t * out
const lzma_filter * filters
void * malloc(size_t size)
#define LZMA_FILTER_LZMA2
LZMA2 Filter ID.
The public API of liblzma data compression library.
#define LZMA_STREAM_HEADER_SIZE
Size of Stream Header and Stream Footer.
Options for the Block and Block Header encoders and decoders.
uint32_t header_size
Size of the Block Header field.
lzma_check check
Type of integrity Check.
Options specific to the LZMA1 and LZMA2 filters.
Options for encoding/decoding Stream Header and Stream Footer.
lzma_vli backward_size
Backward Size.
Passing data to and from liblzma.
Common includes, definitions, system-specific things etc.
#define LZMA_VLI_UNKNOWN
VLI value to denote that the value is unknown.
@ LZMA_STREAM_END
End of stream was reached.
@ LZMA_OK
Operation completed successfully.
@ LZMA_FINISH
Finish the coding operation.
@ LZMA_RUN
Continue coding.
#define LZMA_STREAM_INIT
Initialization for lzma_stream.