Rizin
unix-like reverse engineering framework and cli tools
stream_flags_common.h File Reference

Common stuff for Stream flags coders. More...

#include "common.h"

Go to the source code of this file.

Macros

#define LZMA_STREAM_FLAGS_SIZE   2
 Size of the Stream Flags field. More...
 

Functions

static bool is_backward_size_valid (const lzma_stream_flags *options)
 

Variables

const uint8_t lzma_header_magic [6]
 
const uint8_t lzma_footer_magic [2]
 

Detailed Description

Common stuff for Stream flags coders.

Definition in file stream_flags_common.h.

Macro Definition Documentation

◆ LZMA_STREAM_FLAGS_SIZE

#define LZMA_STREAM_FLAGS_SIZE   2

Size of the Stream Flags field.

Definition at line 19 of file stream_flags_common.h.

Function Documentation

◆ is_backward_size_valid()

static bool is_backward_size_valid ( const lzma_stream_flags options)
inlinestatic

Definition at line 26 of file stream_flags_common.h.

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 }
static const char struct stat static buf struct stat static buf static vhangup int options
Definition: sflib.h:145
#define LZMA_BACKWARD_SIZE_MAX
Definition: stream_flags.h:71
#define LZMA_BACKWARD_SIZE_MIN
Definition: stream_flags.h:70

References LZMA_BACKWARD_SIZE_MAX, LZMA_BACKWARD_SIZE_MIN, and options.

Referenced by LZMA_API().

Variable Documentation

◆ lzma_footer_magic

const uint8_t lzma_footer_magic[2]
extern

Definition at line 17 of file stream_flags_common.c.

◆ lzma_header_magic

const uint8_t lzma_header_magic[6]
extern

Definition at line 16 of file stream_flags_common.c.

Referenced by LZMA_API().