Rizin
unix-like reverse engineering framework and cli tools
stream_flags.h
Go to the documentation of this file.
1 
6 /*
7  * Author: Lasse Collin
8  *
9  * This file has been put into the public domain.
10  * You can do whatever you want with this file.
11  *
12  * See ../lzma.h for information about liblzma as a whole.
13  */
14 
15 #ifndef LZMA_H_INTERNAL
16 # error Never include this file directly. Use <lzma.h> instead.
17 #endif
18 
19 
27 #define LZMA_STREAM_HEADER_SIZE 12
28 
29 
33 typedef struct {
52 
70 # define LZMA_BACKWARD_SIZE_MIN 4
71 # define LZMA_BACKWARD_SIZE_MAX (LZMA_VLI_C(1) << 34)
72 
80 
81  /*
82  * Reserved space to allow possible future extensions without
83  * breaking the ABI. You should not touch these, because the
84  * names of these variables may change.
85  *
86  * (We will never be able to use all of these since Stream Flags
87  * is just two bytes plus Backward Size of four bytes. But it's
88  * nice to have the proper types when they are needed.)
89  */
104 
106 
107 
122 extern LZMA_API(lzma_ret) lzma_stream_header_encode(
125 
126 
139 extern LZMA_API(lzma_ret) lzma_stream_footer_encode(
142 
143 
174 extern LZMA_API(lzma_ret) lzma_stream_header_decode(
177 
178 
201 extern LZMA_API(lzma_ret) lzma_stream_footer_decode(
204 
205 
221 extern LZMA_API(lzma_ret) lzma_stream_flags_compare(
lzma_check
Type of the integrity check (Check ID)
Definition: check.h:27
const lzma_allocator const uint8_t * in
Definition: block.h:527
const lzma_allocator const uint8_t size_t uint8_t * out
Definition: block.h:528
#define const
Definition: ansidecl.h:240
static const char struct stat static buf struct stat static buf static vhangup int options
Definition: sflib.h:145
#define lzma_nothrow
Definition: lzma.h:231
unsigned int uint32_t
Definition: sftypes.h:29
unsigned char uint8_t
Definition: sftypes.h:31
#define b(i)
Definition: sha256.c:42
#define a(i)
Definition: sha256.c:41
const lzma_stream_flags *b lzma_nothrow lzma_attr_pure
Definition: stream_flags.h:223
LZMA_API(lzma_ret) lzma_stream_header_encode(const lzma_stream_flags *options
Encode Stream Header.
uint8_t *out lzma_nothrow lzma_attr_warn_unused_result
Definition: stream_flags.h:124
Options for encoding/decoding Stream Header and Stream Footer.
Definition: stream_flags.h:33
lzma_reserved_enum reserved_enum1
Definition: stream_flags.h:90
uint32_t reserved_int2
Definition: stream_flags.h:103
lzma_reserved_enum reserved_enum4
Definition: stream_flags.h:93
uint32_t version
Stream Flags format version.
Definition: stream_flags.h:51
lzma_bool reserved_bool7
Definition: stream_flags.h:100
uint32_t reserved_int1
Definition: stream_flags.h:102
lzma_bool reserved_bool3
Definition: stream_flags.h:96
lzma_vli backward_size
Backward Size.
Definition: stream_flags.h:69
lzma_check check
Check ID.
Definition: stream_flags.h:79
lzma_bool reserved_bool5
Definition: stream_flags.h:98
lzma_bool reserved_bool2
Definition: stream_flags.h:95
lzma_reserved_enum reserved_enum2
Definition: stream_flags.h:91
lzma_reserved_enum reserved_enum3
Definition: stream_flags.h:92
lzma_bool reserved_bool6
Definition: stream_flags.h:99
lzma_bool reserved_bool8
Definition: stream_flags.h:101
lzma_bool reserved_bool4
Definition: stream_flags.h:97
lzma_bool reserved_bool1
Definition: stream_flags.h:94
uint64_t lzma_vli
Variable-length integer type.
Definition: vli.h:63
lzma_reserved_enum
Type of reserved enumeration variable in structures.
Definition: base.h:44
lzma_ret
Return values used by several functions in liblzma.
Definition: base.h:57
unsigned char lzma_bool
Boolean.
Definition: base.h:29