Rizin
unix-like reverse engineering framework and cli tools
simple_private.h
Go to the documentation of this file.
1 //
5 //
6 // Author: Lasse Collin
7 //
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
10 //
12 
13 #ifndef LZMA_SIMPLE_PRIVATE_H
14 #define LZMA_SIMPLE_PRIVATE_H
15 
16 #include "simple_coder.h"
17 
18 
19 typedef struct {
22 
25 
30  bool is_encoder;
31 
34  size_t (*filter)(void *simple, uint32_t now_pos,
35  bool is_encoder, uint8_t *buffer, size_t size);
36 
39  void *simple;
40 
45 
47  size_t allocated;
48 
51  size_t pos;
52 
55  size_t filtered;
56 
59  size_t size;
60 
64 
65 
69  size_t (*filter)(void *simple, uint32_t now_pos,
70  bool is_encoder, uint8_t *buffer, size_t size),
71  size_t simple_size, size_t unfiltered_max,
72  uint32_t alignment, bool is_encoder);
73 
74 #endif
const lzma_allocator * allocator
Definition: block.h:377
struct buffer buffer
const lzma_filter * filters
Definition: container.h:315
voidpf void uLong size
Definition: ioapi.h:138
int size_t
Definition: sftypes.h:40
unsigned int uint32_t
Definition: sftypes.h:29
unsigned char uint8_t
Definition: sftypes.h:31
Wrapper for simple filters.
lzma_ret lzma_simple_coder_init(lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter_info *filters, size_t(*filter)(void *simple, uint32_t now_pos, bool is_encoder, uint8_t *buffer, size_t size), size_t simple_size, size_t unfiltered_max, uint32_t alignment, bool is_encoder)
Definition: simple_coder.c:235
Definition: buffer.h:15
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
size_t allocated
Size of the memory allocated for the buffer.
lzma_next_coder next
Next filter in the chain.
bool end_was_reached
True if the next coder in the chain has returned LZMA_STREAM_END.
lzma_ret
Return values used by several functions in liblzma.
Definition: base.h:57