#include "Types.h"
Go to the source code of this file.
Classes | |
struct | _CLzmaProps |
struct | CLzmaDec |
Macros | |
#define | CLzmaProb UInt16 |
#define | LZMA_PROPS_SIZE 5 |
#define | LZMA_REQUIRED_INPUT_MAX 20 |
#define | LzmaDec_Construct(p) { (p)->dic = 0; (p)->probs = 0; } |
Typedefs | |
typedef struct _CLzmaProps | CLzmaProps |
Functions | |
SRes | LzmaDec_Allocate (CLzmaDec *state, const Byte *prop, unsigned propsSize, ISzAlloc *alloc) |
SRes | LzmaDec_AllocateProbs (CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAlloc *alloc) |
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) |
void | LzmaDec_Free (CLzmaDec *state, ISzAlloc *alloc) |
void | LzmaDec_FreeProbs (CLzmaDec *p, ISzAlloc *alloc) |
void | LzmaDec_Init (CLzmaDec *p) |
SRes | LzmaDecode (Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, const Byte *propData, unsigned propSize, ELzmaFinishMode finishMode, ELzmaStatus *status, ISzAlloc *alloc) |
SRes | LzmaProps_Decode (CLzmaProps *p, const Byte *data, unsigned size) |
#define CLzmaProb UInt16 |
Definition at line 20 of file LzmaDec.h.
Referenced by LzmaDec_AllocateProbs2(), LzmaDec_DecodeReal(), LzmaDec_InitStateReal(), and LzmaDec_TryDummy().
#define LZMA_PROPS_SIZE 5 |
Definition at line 26 of file LzmaDec.h.
Referenced by LzmaProps_Decode(), and LzmaFile::Open().
#define LZMA_REQUIRED_INPUT_MAX 20 |
Definition at line 48 of file LzmaDec.h.
Referenced by LzmaDec_DecodeToDic().
#define LzmaDec_Construct | ( | p | ) | { (p)->dic = 0; (p)->probs = 0; } |
Definition at line 71 of file LzmaDec.h.
Referenced by LzmaDecode(), and LzmaFile::Open().
typedef struct _CLzmaProps CLzmaProps |
enum ELzmaFinishMode |
Enumerator | |
---|---|
LZMA_FINISH_ANY | |
LZMA_FINISH_END |
Definition at line 79 of file LzmaDec.h.
enum ELzmaStatus |
Enumerator | |
---|---|
LZMA_STATUS_NOT_SPECIFIED | |
LZMA_STATUS_FINISHED_WITH_MARK | |
LZMA_STATUS_NOT_FINISHED | |
LZMA_STATUS_NEEDS_MORE_INPUT | |
LZMA_STATUS_MAYBE_FINISHED_WITHOUT_MARK |
Definition at line 100 of file LzmaDec.h.
Definition at line 947 of file LzmaDec.cc.
References ISzAlloc::Alloc, CLzmaDec::dic, CLzmaDec::dicBufSize, _CLzmaProps::dicSize, LzmaDec_AllocateProbs2(), LzmaDec_FreeDict(), LzmaDec_FreeProbs(), LzmaProps_Decode(), CLzmaDec::prop, RINOK, SZ_ERROR_MEM, and SZ_OK.
Referenced by LzmaFile::Open().
SRes LzmaDec_AllocateProbs | ( | CLzmaDec * | p, |
const Byte * | props, | ||
unsigned | propsSize, | ||
ISzAlloc * | alloc | ||
) |
Definition at line 938 of file LzmaDec.cc.
References LzmaDec_AllocateProbs2(), LzmaProps_Decode(), CLzmaDec::prop, RINOK, and SZ_OK.
Referenced by LzmaDecode().
SRes LzmaDec_DecodeToBuf | ( | CLzmaDec * | p, |
Byte * | dest, | ||
SizeT * | destLen, | ||
const Byte * | src, | ||
SizeT * | srcLen, | ||
ELzmaFinishMode | finishMode, | ||
ELzmaStatus * | status | ||
) |
Definition at line 840 of file LzmaDec.cc.
References CLzmaDec::dic, CLzmaDec::dicBufSize, CLzmaDec::dicPos, LZMA_FINISH_ANY, LzmaDec_DecodeToDic(), and SZ_OK.
Referenced by LzmaFile::DecodeAll(), and LzmaFile::DecodeBuffer().
SRes LzmaDec_DecodeToDic | ( | CLzmaDec * | p, |
SizeT | dicLimit, | ||
const Byte * | src, | ||
SizeT * | srcLen, | ||
ELzmaFinishMode | finishMode, | ||
ELzmaStatus * | status | ||
) |
Definition at line 719 of file LzmaDec.cc.
References CLzmaDec::buf, CLzmaDec::code, CLzmaDec::dicPos, DUMMY_ERROR, DUMMY_MATCH, kMatchSpecLenStart, LZMA_FINISH_ANY, LZMA_REQUIRED_INPUT_MAX, LZMA_STATUS_FINISHED_WITH_MARK, LZMA_STATUS_MAYBE_FINISHED_WITHOUT_MARK, LZMA_STATUS_NEEDS_MORE_INPUT, LZMA_STATUS_NOT_FINISHED, LZMA_STATUS_NOT_SPECIFIED, LzmaDec_DecodeReal2(), LzmaDec_InitRc(), LzmaDec_InitStateReal(), LzmaDec_TryDummy(), LzmaDec_WriteRem(), CLzmaDec::needFlush, CLzmaDec::needInitState, RC_INIT_SIZE, CLzmaDec::remainLen, TrackRefitter_38T_cff::src, SZ_ERROR_DATA, SZ_OK, CLzmaDec::tempBuf, and CLzmaDec::tempBufSize.
Referenced by LzmaDec_DecodeToBuf(), and LzmaDecode().
Definition at line 892 of file LzmaDec.cc.
References LzmaDec_FreeDict(), and LzmaDec_FreeProbs().
Referenced by LzmaFile::Close().
Definition at line 880 of file LzmaDec.cc.
References ISzAlloc::Free, and CLzmaDec::probs.
Referenced by LzmaDec_Allocate(), LzmaDec_AllocateProbs2(), LzmaDec_Free(), and LzmaDecode().
void LzmaDec_Init | ( | CLzmaDec * | p | ) |
Definition at line 701 of file LzmaDec.cc.
References CLzmaDec::dicPos, LzmaDec_InitDicAndState(), and True.
Referenced by LzmaDecode(), and LzmaFile::Open().
SRes LzmaDecode | ( | Byte * | dest, |
SizeT * | destLen, | ||
const Byte * | src, | ||
SizeT * | srcLen, | ||
const Byte * | propData, | ||
unsigned | propSize, | ||
ELzmaFinishMode | finishMode, | ||
ELzmaStatus * | status, | ||
ISzAlloc * | alloc | ||
) |
Definition at line 969 of file LzmaDec.cc.
References mps_fire::dest, CLzmaDec::dic, CLzmaDec::dicBufSize, CLzmaDec::dicPos, LZMA_STATUS_NEEDS_MORE_INPUT, LzmaDec_AllocateProbs(), LzmaDec_Construct, LzmaDec_DecodeToDic(), LzmaDec_FreeProbs(), LzmaDec_Init(), AlCaHLTBitMon_ParallelJobs::p, RC_INIT_SIZE, SZ_ERROR_INPUT_EOF, and SZ_OK.
SRes LzmaProps_Decode | ( | CLzmaProps * | p, |
const Byte * | data, | ||
unsigned | size | ||
) |
Definition at line 898 of file LzmaDec.cc.
References edmIntegrityCheck::d, _CLzmaProps::dicSize, _CLzmaProps::lc, _CLzmaProps::lp, LZMA_DIC_MIN, LZMA_PROPS_SIZE, _CLzmaProps::pb, SZ_ERROR_UNSUPPORTED, and SZ_OK.
Referenced by LzmaDec_Allocate(), and LzmaDec_AllocateProbs().