#include "Precomp.h"
#ifdef SHOW_DEBUG_INFO
#include <stdio.h>
#endif
#include <string.h>
#include "Lzma2Dec.h"
#define LZMA2_CONTROL_COPY_RESET_DIC …
#define LZMA2_IS_UNCOMPRESSED_STATE(p) …
#define LZMA2_LCLP_MAX …
#define LZMA2_DIC_SIZE_FROM_PROP(p) …
#ifdef SHOW_DEBUG_INFO
#define PRF …
#else
#define PRF(x) …
#endif
ELzma2State;
static SRes Lzma2Dec_GetOldProps(Byte prop, Byte *props)
{ … }
SRes Lzma2Dec_AllocateProbs(CLzma2Dec *p, Byte prop, ISzAllocPtr alloc)
{ … }
SRes Lzma2Dec_Allocate(CLzma2Dec *p, Byte prop, ISzAllocPtr alloc)
{ … }
void Lzma2Dec_Init(CLzma2Dec *p)
{ … }
static unsigned Lzma2Dec_UpdateState(CLzma2Dec *p, Byte b)
{ … }
static void LzmaDec_UpdateWithUncompressed(CLzmaDec *p, const Byte *src, SizeT size)
{ … }
void LzmaDec_InitDicAndState(CLzmaDec *p, BoolInt initDic, BoolInt initState);
SRes Lzma2Dec_DecodeToDic(CLzma2Dec *p, SizeT dicLimit,
const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status)
{ … }
ELzma2ParseStatus Lzma2Dec_Parse(CLzma2Dec *p,
SizeT outSize,
const Byte *src, SizeT *srcLen,
int checkFinishBlock)
{ … }
SRes Lzma2Dec_DecodeToBuf(CLzma2Dec *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status)
{ … }
SRes Lzma2Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
Byte prop, ELzmaFinishMode finishMode, ELzmaStatus *status, ISzAllocPtr alloc)
{ … }