Update THANKS
[xz/debian.git] / src / liblzma / delta / delta_private.h
blobe54721a84665652df0e0fdb9a39c9296de636fa8
1 // SPDX-License-Identifier: 0BSD
3 ///////////////////////////////////////////////////////////////////////////////
4 //
5 /// \file delta_private.h
6 /// \brief Private common stuff for Delta encoder and decoder
7 //
8 // Author: Lasse Collin
9 //
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef LZMA_DELTA_PRIVATE_H
13 #define LZMA_DELTA_PRIVATE_H
15 #include "delta_common.h"
17 typedef struct {
18 /// Next coder in the chain
19 lzma_next_coder next;
21 /// Delta distance
22 size_t distance;
24 /// Position in history[]
25 uint8_t pos;
27 /// Buffer to hold history of the original data
28 uint8_t history[LZMA_DELTA_DIST_MAX];
29 } lzma_delta_coder;
32 extern lzma_ret lzma_delta_coder_init(
33 lzma_next_coder *next, const lzma_allocator *allocator,
34 const lzma_filter_info *filters);
36 #endif