Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
block.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
28typedef struct {
59 uint32_t version;
60
80 uint32_t header_size;
81# define LZMA_BLOCK_HEADER_SIZE_MIN 8
82# define LZMA_BLOCK_HEADER_SIZE_MAX 1024
83
102
158
183
211
228 uint8_t raw_check[LZMA_CHECK_SIZE_MAX];
229
230 /*
231 * Reserved space to allow possible future extensions without
232 * breaking the ABI. You should not touch these, because the names
233 * of these variables may change. These are and will never be used
234 * with the currently supported options, so it is safe to leave these
235 * uninitialized.
236 */
237
239 void *reserved_ptr1;
240
242 void *reserved_ptr2;
243
245 void *reserved_ptr3;
246
248 uint32_t reserved_int1;
249
251 uint32_t reserved_int2;
252
254 lzma_vli reserved_int3;
255
257 lzma_vli reserved_int4;
258
260 lzma_vli reserved_int5;
261
263 lzma_vli reserved_int6;
264
266 lzma_vli reserved_int7;
267
269 lzma_vli reserved_int8;
270
272 lzma_reserved_enum reserved_enum1;
273
275 lzma_reserved_enum reserved_enum2;
276
278 lzma_reserved_enum reserved_enum3;
279
281 lzma_reserved_enum reserved_enum4;
282
302 lzma_bool ignore_check;
303
305 lzma_bool reserved_bool2;
306
308 lzma_bool reserved_bool3;
309
311 lzma_bool reserved_bool4;
312
314 lzma_bool reserved_bool5;
315
317 lzma_bool reserved_bool6;
318
320 lzma_bool reserved_bool7;
321
323 lzma_bool reserved_bool8;
324
325} lzma_block;
326
327
340#define lzma_block_header_size_decode(b) (((uint32_t)(b) + 1) * 4)
341
342
367extern LZMA_API(lzma_ret) lzma_block_header_size(lzma_block *block)
369
370
390extern LZMA_API(lzma_ret) lzma_block_header_encode(
391 const lzma_block *block, uint8_t *out)
393
394
436extern LZMA_API(lzma_ret) lzma_block_header_decode(lzma_block *block,
439
440
473extern LZMA_API(lzma_ret) lzma_block_compressed_size(
476
477
492extern LZMA_API(lzma_vli) lzma_block_unpadded_size(const lzma_block *block)
494
495
508extern LZMA_API(lzma_vli) lzma_block_total_size(const lzma_block *block)
510
511
536extern LZMA_API(lzma_ret) lzma_block_encoder(
539
540
560extern LZMA_API(lzma_ret) lzma_block_decoder(
563
564
576extern LZMA_API(size_t) lzma_block_buffer_bound(size_t uncompressed_size)
578
579
618extern LZMA_API(lzma_ret) lzma_block_buffer_encode(
620 const uint8_t *in, size_t in_size,
621 uint8_t *out, size_t *out_pos, size_t out_size)
623
624
656extern LZMA_API(lzma_ret) lzma_block_uncomp_encode(lzma_block *block,
657 const uint8_t *in, size_t in_size,
658 uint8_t *out, size_t *out_pos, size_t out_size)
660
661
690extern LZMA_API(lzma_ret) lzma_block_buffer_decode(
692 const uint8_t *in, size_t *in_pos, size_t in_size,
693 uint8_t *out, size_t *out_pos, size_t out_size)
version
Definition setup.py:283
Custom functions for memory handling.
Definition base.h:372
Options for the Block and Block Header encoders and decoders.
Definition block.h:30
Filter options.
Definition filter.h:43
Passing data to and from liblzma.
Definition base.h:485
Definition tar.h:373
#define const
Definition zconf.h:230
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
const lzma_allocator const uint8_t size_t size_t uint8_t size_t size_t out_size lzma_nothrow
Definition block.h:581
const lzma_allocator const uint8_t size_t uint8_t size_t * out_pos
Definition block.h:528
const lzma_allocator const uint8_t size_t * in_pos
Definition block.h:579
const lzma_allocator const uint8_t size_t in_size
Definition block.h:527
const lzma_allocator const uint8_t * in
Definition block.h:527
uint8_t *out lzma_nothrow lzma_attr_warn_unused_result
Definition block.h:333
const lzma_allocator const uint8_t size_t uint8_t * out
Definition block.h:528
const lzma_allocator * allocator
Definition block.h:377
lzma_check
Type of the integrity check (Check ID)
Definition check.h:27
#define LZMA_CHECK_SIZE_MAX
Maximum size of a Check field.
Definition check.h:102
lzma_check check
Definition container.h:292
const lzma_filter * filters
Definition container.h:315
const lzma_allocator lzma_vli unpadded_size
Definition index.h:345
uint64_t lzma_vli
Variable-length integer type.
Definition vli.h:63
#define lzma_attr_pure
Definition lzma.h:265
#define LZMA_API(type)
Definition lzma.h:207
uint64_t compressed_size
Definition list.c:208
uint64_t uncompressed_size
Definition list.c:209