| liblzma (XZ Utils) 5.4.3
    | 
.xz Stream Header and Stream Footer encoder and decoder More...
| Data Structures | |
| 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. | |
| #define | LZMA_BACKWARD_SIZE_MIN 4 | 
| Minimum value for lzma_stream_flags.backward_size. | |
| #define | LZMA_BACKWARD_SIZE_MAX (LZMA_VLI_C(1) << 34) | 
| Maximum value for lzma_stream_flags.backward_size. | |
| Functions | |
| lzma_ret | lzma_stream_header_encode (const lzma_stream_flags *options, uint8_t *out) lzma_nothrow lzma_attr_warn_unused_result | 
| Encode Stream Header. | |
| lzma_ret | lzma_stream_footer_encode (const lzma_stream_flags *options, uint8_t *out) lzma_nothrow lzma_attr_warn_unused_result | 
| Encode Stream Footer. | |
| lzma_ret | lzma_stream_header_decode (lzma_stream_flags *options, const uint8_t *in) lzma_nothrow lzma_attr_warn_unused_result | 
| Decode Stream Header. | |
| lzma_ret | lzma_stream_footer_decode (lzma_stream_flags *options, const uint8_t *in) lzma_nothrow lzma_attr_warn_unused_result | 
| Decode Stream Footer. | |
| lzma_ret | lzma_stream_flags_compare (const lzma_stream_flags *a, const lzma_stream_flags *b) lzma_nothrow lzma_attr_pure | 
| Compare two lzma_stream_flags structures. | |
.xz Stream Header and Stream Footer encoder and decoder
| #define LZMA_STREAM_HEADER_SIZE 12 | 
Size of Stream Header and Stream Footer.
Stream Header and Stream Footer have the same size and they are not going to change even if a newer version of the .xz file format is developed in future.
| 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] | out | Beginning of the output buffer of LZMA_STREAM_HEADER_SIZE bytes. | 
| 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] | out | Beginning of the output buffer of LZMA_STREAM_HEADER_SIZE bytes. | 
| lzma_ret lzma_stream_header_decode | ( | lzma_stream_flags * | options, | 
| const uint8_t * | in | ||
| ) | 
Decode Stream Header.
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().
| [out] | options | Target for the decoded Stream Header options. | 
| in | Beginning of the input buffer of LZMA_STREAM_HEADER_SIZE bytes. | 
| lzma_ret lzma_stream_footer_decode | ( | lzma_stream_flags * | options, | 
| const uint8_t * | in | ||
| ) | 
Decode Stream Footer.
| [out] | options | Target for the decoded Stream Footer options. | 
| in | Beginning of the input buffer of LZMA_STREAM_HEADER_SIZE bytes. | 
| lzma_ret lzma_stream_flags_compare | ( | const lzma_stream_flags * | a, | 
| const lzma_stream_flags * | b | ||
| ) | 
Compare two lzma_stream_flags structures.
backward_size values are compared only if both are not LZMA_VLI_UNKNOWN.
| a | Pointer to lzma_stream_flags structure | 
| b | Pointer to lzma_stream_flags structure |