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.   | |
| lzma_ret | lzma_stream_footer_decode (lzma_stream_flags *options, const uint8_t *in) | 
| Decode Stream Footer.   | |
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.
References lzma_crc32(), and LZMA_STREAM_FLAGS_SIZE.
Referenced by parse_indexes().
| 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_crc32(), and LZMA_STREAM_FLAGS_SIZE.
Referenced by parse_indexes().
 1.7.1