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
6/*
7 * Author: Lasse Collin
8 *
9 * This file has been put into the public domain.
10 * You can do whatever you want with this file.
11 *
12 * See ../lzma.h for information about liblzma as a whole.
13 */
14
15#ifndef LZMA_H_INTERNAL
16# error Never include this file directly. Use <lzma.h> instead.
17#endif
18
19
27#define LZMA_STREAM_HEADER_SIZE 12
28
29
33typedef struct {
51 uint32_t version;
52
69 lzma_vli backward_size;
70# define LZMA_BACKWARD_SIZE_MIN 4
71# define LZMA_BACKWARD_SIZE_MAX (LZMA_VLI_C(1) << 34)
72
80
81 /*
82 * Reserved space to allow possible future extensions without
83 * breaking the ABI. You should not touch these, because the
84 * names of these variables may change.
85 *
86 * (We will never be able to use all of these since Stream Flags
87 * is just two bytes plus Backward Size of four bytes. But it's
88 * nice to have the proper types when they are needed.)
89 */
90 lzma_reserved_enum reserved_enum1;
91 lzma_reserved_enum reserved_enum2;
92 lzma_reserved_enum reserved_enum3;
93 lzma_reserved_enum reserved_enum4;
94 lzma_bool reserved_bool1;
95 lzma_bool reserved_bool2;
96 lzma_bool reserved_bool3;
97 lzma_bool reserved_bool4;
98 lzma_bool reserved_bool5;
99 lzma_bool reserved_bool6;
100 lzma_bool reserved_bool7;
101 lzma_bool reserved_bool8;
102 uint32_t reserved_int1;
103 uint32_t reserved_int2;
104
106
107
122extern LZMA_API(lzma_ret) lzma_stream_header_encode(
123 const lzma_stream_flags *options, uint8_t *out)
125
126
139extern LZMA_API(lzma_ret) lzma_stream_footer_encode(
140 const lzma_stream_flags *options, uint8_t *out)
142
143
174extern LZMA_API(lzma_ret) lzma_stream_header_decode(
175 lzma_stream_flags *options, const uint8_t *in)
177
178
201extern LZMA_API(lzma_ret) lzma_stream_footer_decode(
202 lzma_stream_flags *options, const uint8_t *in)
204
205
221extern 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