Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
simple_private.h
Go to the documentation of this file.
1// SPDX-License-Identifier: 0BSD
2
4//
7//
8// Author: Lasse Collin
9//
11
12#ifndef LZMA_SIMPLE_PRIVATE_H
13#define LZMA_SIMPLE_PRIVATE_H
14
15#include "simple_coder.h"
16
17
18typedef struct {
20 lzma_next_coder next;
21
23 bool end_was_reached;
24
29 bool is_encoder;
30
33 size_t (*filter)(void *simple, uint32_t now_pos,
34 bool is_encoder, uint8_t *buffer, size_t size);
35
38 void *simple;
39
43 uint32_t now_pos;
44
46 size_t allocated;
47
50 size_t pos;
51
54 size_t filtered;
55
58 size_t size;
59
61 uint8_t buffer[];
63
64
68 size_t (*filter)(void *simple, uint32_t now_pos,
69 bool is_encoder, uint8_t *buffer, size_t size),
70 size_t simple_size, size_t unfiltered_max,
71 uint32_t alignment, bool is_encoder);
72
73#endif
Custom functions for memory handling.
Definition base.h:372
Definition common.h:177
Hold data and function pointers of the next filter in the chain.
Definition common.h:195
Definition simple_private.h:19
size_t size
Definition platform.h:559
lzma_ret
Return values used by several functions in liblzma.
Definition base.h:57
const lzma_allocator * allocator
Definition block.h:377
const lzma_filter * filters
Definition container.h:315
lzma_ret lzma_simple_coder_init(lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter_info *filters, size_t(*filter)(void *simple, uint32_t now_pos, bool is_encoder, uint8_t *buffer, size_t size), size_t simple_size, size_t unfiltered_max, uint32_t alignment, bool is_encoder)
Definition simple_coder.c:235
Wrapper for simple filters.
method_t const simple
Definition method.c:617