14 #ifndef LZMA_LZ_ENCODER_H
15 #define LZMA_LZ_ENCODER_H
259 #define mf_find lzma_mf_find
270 mf->
skip(mf, amount);
282 const size_t out_avail = out_size - *
out_pos;
283 const size_t copy_size =
my_min(out_avail, *left);
const lzma_allocator const uint8_t size_t uint8_t size_t * out_pos
const lzma_allocator * allocator
const lzma_allocator const uint8_t size_t uint8_t * out
const lzma_filter * filters
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf static inc static sig const char static mode static oldfd struct tms static buf static getgid static geteuid const char static filename static arg static mask struct ustat static ubuf static getppid static setsid static egid sigset_t static set struct timeval struct timezone static tz fd_set fd_set fd_set struct timeval static timeout const char char static bufsiz const char static swapflags void static offset const char static length static mode static who const char struct statfs static buf unsigned unsigned num
static const char struct stat static buf struct stat static buf static vhangup int options
static void mf_read(lzma_mf *mf, uint8_t *out, size_t *out_pos, size_t out_size, size_t *left)
void lzma_mf_hc4_skip(lzma_mf *dict, uint32_t amount)
uint32_t lzma_mf_hc3_find(lzma_mf *dict, lzma_match *matches)
uint32_t lzma_mf_bt2_find(lzma_mf *dict, lzma_match *matches)
static uint32_t mf_avail(const lzma_mf *mf)
Get the number of bytes that haven't been ran through the match finder yet.
uint32_t lzma_mf_bt3_find(lzma_mf *dict, lzma_match *matches)
static uint32_t mf_unencoded(const lzma_mf *mf)
static const uint8_t * mf_ptr(const lzma_mf *mf)
Get pointer to the first byte not ran through the match finder.
uint32_t lzma_mf_find(lzma_mf *mf, uint32_t *count, lzma_match *matches)
Find matches starting from the current byte.
uint32_t lzma_mf_bt4_find(lzma_mf *dict, lzma_match *matches)
void lzma_mf_bt2_skip(lzma_mf *dict, uint32_t amount)
uint64_t lzma_lz_encoder_memusage(const lzma_lz_options *lz_options)
static uint32_t mf_position(const lzma_mf *mf)
void lzma_mf_bt3_skip(lzma_mf *dict, uint32_t amount)
static void mf_skip(lzma_mf *mf, uint32_t amount)
void lzma_mf_hc3_skip(lzma_mf *dict, uint32_t amount)
lzma_ret lzma_lz_encoder_init(lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter_info *filters, lzma_ret(*lz_init)(lzma_lz_encoder *lz, const lzma_allocator *allocator, const void *options, lzma_lz_options *lz_options))
void lzma_mf_bt4_skip(lzma_mf *dict, uint32_t amount)
uint32_t lzma_mf_hc4_find(lzma_mf *dict, lzma_match *matches)
lzma_match_finder
Match finders.
assert(limit<=UINT32_MAX/2)
static bool filter(RzParse *p, ut64 addr, RzFlag *f, RzAnalysisHint *hint, char *data, char *str, int len, bool big_endian)
Custom functions for memory handling.
void * coder
Data specific to the LZ-based encoder.
uint32_t depth
Maximum search depth.
uint32_t preset_dict_size
lzma_match_finder match_finder
Type of the match finder to use.
uint32_t hash_count
Number of elements in hash[].
uint8_t * buffer
Pointer to buffer with data to be compressed.
uint32_t depth
Maximum number of loops in the match finder.
uint32_t(* find)(lzma_mf *mf, lzma_match *matches)
uint32_t nice_len
Maximum length of a match that the match finder will try to find.
uint32_t sons_count
Number of elements in son[].
void(* skip)(lzma_mf *mf, uint32_t num)
uint32_t keep_size_before
Hold data and function pointers of the next filter in the chain.
lzma_ret
Return values used by several functions in liblzma.
lzma_action
The ‘action’ argument for lzma_code()