RT-AC56 3.0.0.4.374.37 core
[tomato.git] / release / src-rt-6.x.4708 / tools / misc / xz / src / liblzma / delta / delta_private.h
blob62b7fed86e45fe98b9c83050e55ab1420e3ef65b
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file delta_private.h
4 /// \brief Private common stuff for Delta encoder and decoder
5 //
6 // Author: Lasse Collin
7 //
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
11 ///////////////////////////////////////////////////////////////////////////////
13 #ifndef LZMA_DELTA_PRIVATE_H
14 #define LZMA_DELTA_PRIVATE_H
16 #include "delta_common.h"
18 struct lzma_coder_s {
19 /// Next coder in the chain
20 lzma_next_coder next;
22 /// Delta distance
23 size_t distance;
25 /// Position in history[]
26 uint8_t pos;
28 /// Buffer to hold history of the original data
29 uint8_t history[LZMA_DELTA_DIST_MAX];
33 extern lzma_ret lzma_delta_coder_init(
34 lzma_next_coder *next, lzma_allocator *allocator,
35 const lzma_filter_info *filters);
37 #endif