Encodes Stream Header and Stream Footer for .xz files. More...
#include "stream_flags_common.h"
Functions | |
static bool | stream_flags_encode (const lzma_stream_flags *options, uint8_t *out) |
lzma_ret | lzma_stream_header_encode (const lzma_stream_flags *options, uint8_t *out) |
Encode Stream Header. | |
lzma_ret | lzma_stream_footer_encode (const lzma_stream_flags *options, uint8_t *out) |
Encode Stream Footer. |
Encodes Stream Header and Stream Footer for .xz files.
lzma_ret lzma_stream_header_encode | ( | const lzma_stream_flags * | options, | |
uint8_t * | out | |||
) |
Encode Stream Header.
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. |
References lzma_crc32(), LZMA_STREAM_FLAGS_SIZE, and LZMA_STREAM_HEADER_SIZE.
Referenced by lzma_stream_buffer_encode().
lzma_ret lzma_stream_footer_encode | ( | const lzma_stream_flags * | options, | |
uint8_t * | out | |||
) |
Encode Stream Footer.
options | Stream Footer options to be encoded. | |
out | Beginning of the output buffer of LZMA_STREAM_HEADER_SIZE bytes. |
References lzma_crc32(), LZMA_STREAM_FLAGS_SIZE, and LZMA_STREAM_HEADER_SIZE.
Referenced by lzma_stream_buffer_encode().