Rizin
unix-like reverse engineering framework and cli tools
stream_flags_common.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_STREAM_FLAGS_COMMON_H
14 #define LZMA_STREAM_FLAGS_COMMON_H
15 
16 #include "common.h"
17 
19 #define LZMA_STREAM_FLAGS_SIZE 2
20 
21 extern const uint8_t lzma_header_magic[6];
22 extern const uint8_t lzma_footer_magic[2];
23 
24 
25 static inline bool
27 {
28  return options->backward_size >= LZMA_BACKWARD_SIZE_MIN
29  && options->backward_size <= LZMA_BACKWARD_SIZE_MAX
30  && (options->backward_size & 3) == 0;
31 }
32 
33 #endif
static const char struct stat static buf struct stat static buf static vhangup int options
Definition: sflib.h:145
unsigned char uint8_t
Definition: sftypes.h:31
#define LZMA_BACKWARD_SIZE_MAX
Definition: stream_flags.h:71
#define LZMA_BACKWARD_SIZE_MIN
Definition: stream_flags.h:70
const uint8_t lzma_header_magic[6]
static bool is_backward_size_valid(const lzma_stream_flags *options)
const uint8_t lzma_footer_magic[2]
Options for encoding/decoding Stream Header and Stream Footer.
Definition: stream_flags.h:33
Definitions common to the whole liblzma library.