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
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
30typedef struct {
52 uint32_t version;
53
72 uint32_t header_size;
73# define LZMA_BLOCK_HEADER_SIZE_MIN 8
74# define LZMA_BLOCK_HEADER_SIZE_MAX 1024
75
94
149
173
201
217 uint8_t raw_check[LZMA_CHECK_SIZE_MAX];
218
219 /*
220 * Reserved space to allow possible future extensions without
221 * breaking the ABI. You should not touch these, because the names
222 * of these variables may change. These are and will never be used
223 * with the currently supported options, so it is safe to leave these
224 * uninitialized.
225 */
226 void *reserved_ptr1;
227 void *reserved_ptr2;
228 void *reserved_ptr3;
229 uint32_t reserved_int1;
230 uint32_t reserved_int2;
231 lzma_vli reserved_int3;
232 lzma_vli reserved_int4;
233 lzma_vli reserved_int5;
234 lzma_vli reserved_int6;
235 lzma_vli reserved_int7;
236 lzma_vli reserved_int8;
237 lzma_reserved_enum reserved_enum1;
238 lzma_reserved_enum reserved_enum2;
239 lzma_reserved_enum reserved_enum3;
240 lzma_reserved_enum reserved_enum4;
241
261 lzma_bool ignore_check;
262
263 lzma_bool reserved_bool2;
264 lzma_bool reserved_bool3;
265 lzma_bool reserved_bool4;
266 lzma_bool reserved_bool5;
267 lzma_bool reserved_bool6;
268 lzma_bool reserved_bool7;
269 lzma_bool reserved_bool8;
270
271} lzma_block;
272
273
285#define lzma_block_header_size_decode(b) (((uint32_t)(b) + 1) * 4)
286
287
309extern LZMA_API(lzma_ret) lzma_block_header_size(lzma_block *block)
311
312
331extern LZMA_API(lzma_ret) lzma_block_header_encode(
332 const lzma_block *block, uint8_t *out)
334
335
376extern LZMA_API(lzma_ret) lzma_block_header_decode(lzma_block *block,
379
380
408extern LZMA_API(lzma_ret) lzma_block_compressed_size(
411
412
424extern LZMA_API(lzma_vli) lzma_block_unpadded_size(const lzma_block *block)
426
427
437extern LZMA_API(lzma_vli) lzma_block_total_size(const lzma_block *block)
439
440
455extern LZMA_API(lzma_ret) lzma_block_encoder(
458
459
470extern LZMA_API(lzma_ret) lzma_block_decoder(
473
474
481extern LZMA_API(size_t) lzma_block_buffer_bound(size_t uncompressed_size)
483
484
522extern LZMA_API(lzma_ret) lzma_block_buffer_encode(
524 const uint8_t *in, size_t in_size,
525 uint8_t *out, size_t *out_pos, size_t out_size)
527
528
541extern LZMA_API(lzma_ret) lzma_block_uncomp_encode(lzma_block *block,
542 const uint8_t *in, size_t in_size,
543 uint8_t *out, size_t *out_pos, size_t out_size)
545
546
574extern LZMA_API(lzma_ret) lzma_block_buffer_decode(
576 const uint8_t *in, size_t *in_pos, size_t in_size,
577 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