Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
stream_flags.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: 0BSD */
2
9/*
10 * Author: Lasse Collin
11 */
12
13#ifndef LZMA_H_INTERNAL
14# error Never include this file directly. Use <lzma.h> instead.
15#endif
16
17
25#define LZMA_STREAM_HEADER_SIZE 12
26
27
31typedef struct {
49 uint32_t version;
50
67 lzma_vli backward_size;
68
72# define LZMA_BACKWARD_SIZE_MIN 4
73
77# define LZMA_BACKWARD_SIZE_MAX (LZMA_VLI_C(1) << 34)
78
86
87 /*
88 * Reserved space to allow possible future extensions without
89 * breaking the ABI. You should not touch these, because the
90 * names of these variables may change.
91 *
92 * (We will never be able to use all of these since Stream Flags
93 * is just two bytes plus Backward Size of four bytes. But it's
94 * nice to have the proper types when they are needed.)
95 */
96
98 lzma_reserved_enum reserved_enum1;
99
101 lzma_reserved_enum reserved_enum2;
102
104 lzma_reserved_enum reserved_enum3;
105
107 lzma_reserved_enum reserved_enum4;
108
110 lzma_bool reserved_bool1;
111
113 lzma_bool reserved_bool2;
114
116 lzma_bool reserved_bool3;
117
119 lzma_bool reserved_bool4;
120
122 lzma_bool reserved_bool5;
123
125 lzma_bool reserved_bool6;
126
128 lzma_bool reserved_bool7;
129
131 lzma_bool reserved_bool8;
132
134 uint32_t reserved_int1;
135
137 uint32_t reserved_int2;
138
140
141
157extern LZMA_API(lzma_ret) lzma_stream_header_encode(
158 const lzma_stream_flags *options, uint8_t *out)
160
161
175extern LZMA_API(lzma_ret) lzma_stream_footer_encode(
176 const lzma_stream_flags *options, uint8_t *out)
178
179
211extern LZMA_API(lzma_ret) lzma_stream_header_decode(
212 lzma_stream_flags *options, const uint8_t *in)
214
215
239extern LZMA_API(lzma_ret) lzma_stream_footer_decode(
240 lzma_stream_flags *options, const uint8_t *in)
242
243
263extern LZMA_API(lzma_ret) lzma_stream_flags_compare(
Options for encoding/decoding Stream Header and Stream Footer.
Definition stream_flags.h:33
#define const
Definition zconf.h:230
#define b(i)
Definition sha256.c:42
#define a(i)
Definition sha256.c:41
lzma_reserved_enum
Type of reserved enumeration variable in structures.
Definition base.h:44
lzma_ret
Return values used by several functions in liblzma.
Definition base.h:57
unsigned char lzma_bool
Boolean.
Definition base.h:29
lzma_check
Type of the integrity check (Check ID)
Definition check.h:27
lzma_check check
Definition container.h:292
const lzma_stream_flags *b lzma_nothrow lzma_attr_pure
Definition stream_flags.h:223
uint8_t *out lzma_nothrow lzma_attr_warn_unused_result
Definition stream_flags.h:124
uint64_t lzma_vli
Variable-length integer type.
Definition vli.h:63
#define lzma_nothrow
Definition lzma.h:231
#define LZMA_API(type)
Definition lzma.h:207
const lzma_options_lzma * options
Definition container.h:545