Rizin
unix-like reverse engineering framework and cli tools
|
.xz Stream Header and Stream Footer encoder and decoder More...
Go to the source code of this file.
Classes | |
struct | lzma_stream_flags |
Options for encoding/decoding Stream Header and Stream Footer. More... | |
Macros | |
#define | LZMA_STREAM_HEADER_SIZE 12 |
Size of Stream Header and Stream Footer. More... | |
#define | LZMA_BACKWARD_SIZE_MIN 4 |
#define | LZMA_BACKWARD_SIZE_MAX (LZMA_VLI_C(1) << 34) |
Functions | |
LZMA_API (lzma_ret) lzma_stream_header_encode(const lzma_stream_flags *options | |
Encode Stream Header. More... | |
Variables | |
uint8_t *out lzma_nothrow | lzma_attr_warn_unused_result |
const lzma_stream_flags *b lzma_nothrow | lzma_attr_pure |
.xz Stream Header and Stream Footer encoder and decoder
Definition in file stream_flags.h.
#define LZMA_BACKWARD_SIZE_MAX (LZMA_VLI_C(1) << 34) |
Definition at line 71 of file stream_flags.h.
#define LZMA_BACKWARD_SIZE_MIN 4 |
Definition at line 70 of file stream_flags.h.
#define LZMA_STREAM_HEADER_SIZE 12 |
LZMA_API | ( | lzma_ret | ) | const |
Encode Stream Header.
Compare two lzma_stream_flags structures.
Decode Stream Footer.
Decode Stream Header.
Encode Stream Footer.
options | Stream Header options to be encoded. options->backward_size is ignored and doesn't need to be initialized. |
out | Beginning of the output buffer of LZMA_STREAM_HEADER_SIZE bytes. |
options | Stream Footer options to be encoded. |
out | Beginning of the output buffer of LZMA_STREAM_HEADER_SIZE bytes. |
options | Target for the decoded Stream Header options. |
in | Beginning of the input buffer of LZMA_STREAM_HEADER_SIZE bytes. |
options->backward_size is always set to LZMA_VLI_UNKNOWN. This is to help comparing Stream Flags from Stream Header and Stream Footer with lzma_stream_flags_compare().
For example, Stream decoder in liblzma uses LZMA_DATA_ERROR if LZMA_FORMAT_ERROR is returned by lzma_stream_header_decode() when decoding non-first Stream.
options | Target for the decoded Stream Header options. |
in | Beginning of the input buffer of LZMA_STREAM_HEADER_SIZE bytes. |
backward_size values are compared only if both are not LZMA_VLI_UNKNOWN.
const lzma_stream_flags* b lzma_nothrow lzma_attr_pure |
Definition at line 223 of file stream_flags.h.
const uint8_t* in lzma_nothrow lzma_attr_warn_unused_result |
Definition at line 124 of file stream_flags.h.