|
XZ Utils
5.2.2
|
Decodes Stream Header and Stream Footer from .xz files. More...
#include "stream_flags_common.h"Functions | |
| static bool | stream_flags_decode (lzma_stream_flags *options, const uint8_t *in) |
| lzma_ret | lzma_stream_header_decode (lzma_stream_flags *options, const uint8_t *in) |
| Decode Stream Header. More... | |
| lzma_ret | lzma_stream_footer_decode (lzma_stream_flags *options, const uint8_t *in) |
| Decode Stream Footer. More... | |
Decodes Stream Header and Stream Footer from .xz files.
| lzma_ret lzma_stream_header_decode | ( | lzma_stream_flags * | options, |
| const uint8_t * | in | ||
| ) |
Decode Stream Header.
| 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.
| lzma_ret lzma_stream_footer_decode | ( | lzma_stream_flags * | options, |
| const uint8_t * | in | ||
| ) |
Decode Stream Footer.
| options | Target for the decoded Stream Header options. |
| in | Beginning of the input buffer of LZMA_STREAM_HEADER_SIZE bytes. |
References LZMA_STREAM_FLAGS_SIZE.
1.8.13