4#ifndef ZIP7_INC_LZMA_DEC_H
5#define ZIP7_INC_LZMA_DEC_H
26#define LZMA_PROPS_SIZE 5
51#define LZMA_REQUIRED_INPUT_MAX 20
76#define LzmaDec_CONSTRUCT(p) { (p)->dic = NULL; (p)->probs = NULL; }
77#define LzmaDec_Construct(p) LzmaDec_CONSTRUCT(p)
unsigned int UInt32
Definition 7zTypes.h:180
size_t SizeT
Definition 7zTypes.h:247
#define EXTERN_C_BEGIN
Definition 7zTypes.h:20
int SRes
Definition 7zTypes.h:45
unsigned short UInt16
Definition 7zTypes.h:173
#define EXTERN_C_END
Definition 7zTypes.h:21
const ISzAlloc * ISzAllocPtr
Definition 7zTypes.h:457
unsigned char Byte
Definition 7zTypes.h:171
SRes LzmaDec_Allocate(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAllocPtr alloc)
void LzmaDec_FreeProbs(CLzmaDec *p, ISzAllocPtr alloc)
SRes LzmaDecode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, const Byte *propData, unsigned propSize, ELzmaFinishMode finishMode, ELzmaStatus *status, ISzAllocPtr alloc)
SRes LzmaDec_AllocateProbs(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAllocPtr alloc)
ELzmaFinishMode
Definition LzmaDec.h:86
@ LZMA_FINISH_ANY
Definition LzmaDec.h:87
@ LZMA_FINISH_END
Definition LzmaDec.h:88
void LzmaDec_Free(CLzmaDec *p, ISzAllocPtr alloc)
EXTERN_C_BEGIN typedef UInt16 CLzmaProb
Definition LzmaDec.h:21
SRes LzmaDec_DecodeToBuf(CLzmaDec *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status)
SRes LzmaDec_DecodeToDic(CLzmaDec *p, SizeT dicLimit, const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status)
SRes LzmaProps_Decode(CLzmaProps *p, const Byte *data, unsigned size)
ELzmaStatus
Definition LzmaDec.h:107
@ LZMA_STATUS_NEEDS_MORE_INPUT
Definition LzmaDec.h:111
@ LZMA_STATUS_MAYBE_FINISHED_WITHOUT_MARK
Definition LzmaDec.h:112
@ LZMA_STATUS_NOT_FINISHED
Definition LzmaDec.h:110
@ LZMA_STATUS_NOT_SPECIFIED
Definition LzmaDec.h:108
@ LZMA_STATUS_FINISHED_WITH_MARK
Definition LzmaDec.h:109
void LzmaDec_Init(CLzmaDec *p)
#define LZMA_REQUIRED_INPUT_MAX
Definition LzmaDec.h:51
CLzmaProps prop
Definition LzmaDec.h:56
SizeT dicBufSize
Definition LzmaDec.h:60
CLzmaProb * probs
Definition LzmaDec.h:57
SizeT dicPos
Definition LzmaDec.h:61
CLzmaProb * probs_1664
Definition LzmaDec.h:58
UInt32 reps[4]
Definition LzmaDec.h:67
UInt32 state
Definition LzmaDec.h:68
const Byte * buf
Definition LzmaDec.h:62
UInt32 code
Definition LzmaDec.h:64
Byte * dic
Definition LzmaDec.h:59
UInt32 range
Definition LzmaDec.h:63
UInt32 checkDicSize
Definition LzmaDec.h:66
UInt32 processedPos
Definition LzmaDec.h:65
UInt32 numProbs
Definition LzmaDec.h:71
unsigned tempBufSize
Definition LzmaDec.h:72
Byte tempBuf[LZMA_REQUIRED_INPUT_MAX]
Definition LzmaDec.h:73
UInt32 remainLen
Definition LzmaDec.h:69
Byte lc
Definition LzmaDec.h:30
Byte pb
Definition LzmaDec.h:32
UInt32 dicSize
Definition LzmaDec.h:34
Byte lp
Definition LzmaDec.h:31
Byte _pad_
Definition LzmaDec.h:33