1 ///////////////////////////////////////////////////////////////////////////////
3 /// \file delta_private.h
4 /// \brief Private common stuff for Delta encoder and decoder
6 // Copyright (C) 2007 Lasse Collin
8 // This library is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU Lesser General Public
10 // License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
18 ///////////////////////////////////////////////////////////////////////////////
20 #ifndef LZMA_DELTA_PRIVATE_H
21 #define LZMA_DELTA_PRIVATE_H
23 #include "delta_common.h"
26 /// Next coder in the chain
32 /// Position in history[]
35 /// Buffer to hold history of the original data
36 uint8_t history[LZMA_DELTA_DIST_MAX];
40 extern lzma_ret lzma_delta_coder_init(
41 lzma_next_coder *next, lzma_allocator *allocator,
42 const lzma_filter_info *filters, lzma_code_function code);