Path: blob/master/Utilities/cmliblzma/liblzma/delta/delta_private.h
3156 views
// SPDX-License-Identifier: 0BSD12///////////////////////////////////////////////////////////////////////////////3//4/// \file delta_private.h5/// \brief Private common stuff for Delta encoder and decoder6//7// Author: Lasse Collin8//9///////////////////////////////////////////////////////////////////////////////1011#ifndef LZMA_DELTA_PRIVATE_H12#define LZMA_DELTA_PRIVATE_H1314#include "delta_common.h"1516typedef struct {17/// Next coder in the chain18lzma_next_coder next;1920/// Delta distance21size_t distance;2223/// Position in history[]24uint8_t pos;2526/// Buffer to hold history of the original data27uint8_t history[LZMA_DELTA_DIST_MAX];28} lzma_delta_coder;293031extern lzma_ret lzma_delta_coder_init(32lzma_next_coder *next, const lzma_allocator *allocator,33const lzma_filter_info *filters);3435#endif363738