Rizin
unix-like reverse engineering framework and cli tools
lzma2_encoder.h
Go to the documentation of this file.
1 //
6 // Authors: Igor Pavlov
7 // Lasse Collin
8 //
9 // This file has been put into the public domain.
10 // You can do whatever you want with this file.
11 //
13 
14 #ifndef LZMA_LZMA2_ENCODER_H
15 #define LZMA_LZMA2_ENCODER_H
16 
17 #include "common.h"
18 
19 
21 #define LZMA2_CHUNK_MAX (UINT32_C(1) << 16)
22 
24 #define LZMA2_UNCOMPRESSED_MAX (UINT32_C(1) << 21)
25 
27 #define LZMA2_HEADER_MAX 6
28 
30 #define LZMA2_HEADER_UNCOMPRESSED 3
31 
32 
35  const lzma_filter_info *filters);
36 
37 extern uint64_t lzma_lzma2_encoder_memusage(const void *options);
38 
39 extern lzma_ret lzma_lzma2_props_encode(const void *options, uint8_t *out);
40 
41 extern uint64_t lzma_lzma2_block_size(const void *options);
42 
43 #endif
const lzma_allocator * allocator
Definition: block.h:377
const lzma_allocator const uint8_t size_t uint8_t * out
Definition: block.h:528
const lzma_filter * filters
Definition: container.h:315
static const char struct stat static buf struct stat static buf static vhangup int options
Definition: sflib.h:145
lzma_ret lzma_lzma2_encoder_init(lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter_info *filters)
uint64_t lzma_lzma2_block_size(const void *options)
lzma_ret lzma_lzma2_props_encode(const void *options, uint8_t *out)
uint64_t lzma_lzma2_encoder_memusage(const void *options)
unsigned long uint64_t
Definition: sftypes.h:28
unsigned char uint8_t
Definition: sftypes.h:31
Custom functions for memory handling.
Definition: base.h:372
Hold data and function pointers of the next filter in the chain.
Definition: common.h:135
lzma_ret
Return values used by several functions in liblzma.
Definition: base.h:57