/external/lzma/C/ |
D | 7zTypes.h | 43 typedef int SRes; typedef 141 SRes (*Read)(void *p, void *buf, size_t *size); 147 SRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size); 148 SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType); 149 SRes SeqInStream_ReadByte(ISeqInStream *stream, Byte *buf); 167 SRes (*Read)(void *p, void *buf, size_t *size); /* same as ISeqInStream::Read */ 168 SRes (*Seek)(void *p, Int64 *pos, ESzSeek origin); 173 SRes (*Look)(void *p, const void **buf, size_t *size); 177 SRes (*Skip)(void *p, size_t offset); 180 SRes (*Read)(void *p, void *buf, size_t *size); [all …]
|
D | 7zStream.c | 10 SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType) in SeqInStream_Read2() 24 SRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size) in SeqInStream_Read() 29 SRes SeqInStream_ReadByte(ISeqInStream *stream, Byte *buf) in SeqInStream_ReadByte() 36 SRes LookInStream_SeekTo(ILookInStream *stream, UInt64 offset) in LookInStream_SeekTo() 42 SRes LookInStream_LookRead(ILookInStream *stream, void *buf, size_t *size) in LookInStream_LookRead() 52 SRes LookInStream_Read2(ILookInStream *stream, void *buf, size_t size, SRes errorType) in LookInStream_Read2() 66 SRes LookInStream_Read(ILookInStream *stream, void *buf, size_t size) in LookInStream_Read() 71 static SRes LookToRead_Look_Lookahead(void *pp, const void **buf, size_t *size) in LookToRead_Look_Lookahead() 73 SRes res = SZ_OK; in LookToRead_Look_Lookahead() 89 static SRes LookToRead_Look_Exact(void *pp, const void **buf, size_t *size) in LookToRead_Look_Exact() [all …]
|
D | XzEnc.c | 34 static SRes WriteBytes(ISeqOutStream *s, const void *buf, UInt32 size) in WriteBytes() 39 static SRes WriteBytesAndCrc(ISeqOutStream *s, const void *buf, UInt32 size, UInt32 *crc) in WriteBytesAndCrc() 45 SRes Xz_WriteHeader(CXzStreamFlags f, ISeqOutStream *s) in Xz_WriteHeader() 57 SRes XzBlock_WriteHeader(const CXzBlock *p, ISeqOutStream *s) in XzBlock_WriteHeader() 83 SRes Xz_WriteFooter(CXzStream *p, ISeqOutStream *s) in Xz_WriteFooter() 128 SRes Xz_AddIndexRecord(CXzStream *p, UInt64 unpackSize, UInt64 totalSize, ISzAlloc *alloc) in Xz_AddIndexRecord() 177 static SRes SeqCheckInStream_Read(void *pp, void *data, size_t *size) in SeqCheckInStream_Read() 180 SRes res = p->realStream->Read(p->realStream, data, size); in SeqCheckInStream_Read() 218 static SRes SeqInFilter_Read(void *pp, void *data, size_t *size) in SeqInFilter_Read() 238 SRes res; in SeqInFilter_Read() [all …]
|
D | Xz.h | 54 SRes XzBlock_Parse(CXzBlock *p, const Byte *header); 55 SRes XzBlock_ReadHeader(CXzBlock *p, ISeqInStream *inStream, Bool *isIndex, UInt32 *headerSizeRes); 96 SRes Xz_ParseHeader(CXzStreamFlags *p, const Byte *buf); 97 SRes Xz_ReadHeader(CXzStreamFlags *p, ISeqInStream *inStream); 131 SRes Xzs_ReadBackward(CXzs *p, ILookInStream *inStream, Int64 *startOffset, ICompressProgress *prog… 154 SRes (*SetProps)(void *p, const Byte *props, size_t propSize, ISzAlloc *alloc); 156 SRes (*Code)(void *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, 177 SRes MixCoder_SetFromMethod(CMixCoder *p, int coderIndex, UInt64 methodId); 178 SRes MixCoder_Code(CMixCoder *p, Byte *dest, SizeT *destLen, 257 SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
|
D | LzmaDec.h | 38 SRes LzmaProps_Decode(CLzmaProps *p, const Byte *data, unsigned size); 132 SRes LzmaDec_AllocateProbs(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAlloc *alloc); 135 SRes LzmaDec_Allocate(CLzmaDec *state, const Byte *prop, unsigned propsSize, ISzAlloc *alloc); 179 SRes LzmaDec_DecodeToDic(CLzmaDec *p, SizeT dicLimit, 196 SRes LzmaDec_DecodeToBuf(CLzmaDec *p, Byte *dest, SizeT *destLen, 221 SRes LzmaDecode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
|
D | Lzma2Dec.h | 29 SRes Lzma2Dec_AllocateProbs(CLzma2Dec *p, Byte prop, ISzAlloc *alloc); 30 SRes Lzma2Dec_Allocate(CLzma2Dec *p, Byte prop, ISzAlloc *alloc); 49 SRes Lzma2Dec_DecodeToDic(CLzma2Dec *p, SizeT dicLimit, 52 SRes Lzma2Dec_DecodeToBuf(CLzma2Dec *p, Byte *dest, SizeT *destLen, 75 SRes Lzma2Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
|
D | LzmaEnc.h | 54 SRes LzmaEnc_SetProps(CLzmaEncHandle p, const CLzmaEncProps *props); 55 SRes LzmaEnc_WriteProperties(CLzmaEncHandle p, Byte *properties, SizeT *size); 56 SRes LzmaEnc_Encode(CLzmaEncHandle p, ISeqOutStream *outStream, ISeqInStream *inStream, 58 SRes LzmaEnc_MemEncode(CLzmaEncHandle p, Byte *dest, SizeT *destLen, const Byte *src, SizeT srcLen, 72 SRes LzmaEncode(Byte *dest, SizeT *destLen, const Byte *src, SizeT srcLen,
|
D | MtCoder.c | 58 static SRes Progress(ICompressProgress *p, UInt64 inSize, UInt64 outSize) in Progress() 82 SRes MtProgress_Set(CMtProgress *p, unsigned index, UInt64 inSize, UInt64 outSize) in MtProgress_Set() 84 SRes res; in MtProgress_Set() 95 static void MtProgress_SetError(CMtProgress *p, SRes res) in MtProgress_SetError() 103 static void MtCoder_SetError(CMtCoder* p, SRes res) in MtCoder_SetError() 156 static SRes CMtThread_Prepare(CMtThread *p) in CMtThread_Prepare() 169 static SRes FullRead(ISeqInStream *stream, Byte *data, size_t *processedSize) in FullRead() 176 SRes res = stream->Read(stream, data, &curSize); in FullRead() 189 static SRes MtThread_Process(CMtThread *p, Bool *stop) in MtThread_Process() 235 SRes res = MtThread_Process(p, &stop); in ThreadFunc() [all …]
|
D | MtCoder.h | 41 SRes res; 47 SRes MtProgress_Set(CMtProgress *p, unsigned index, UInt64 inSize, UInt64 outSize); 69 SRes (*Code)(void *p, unsigned index, Byte *dest, size_t *destSize, 86 SRes res; 94 SRes MtCoder_Code(CMtCoder *p);
|
D | Lzma2Enc.c | 49 static SRes Lzma2EncInt_Init(CLzma2EncInt *p, const CLzma2EncProps *props) in Lzma2EncInt_Init() 62 SRes LzmaEnc_PrepareForLzma2(CLzmaEncHandle pp, ISeqInStream *inStream, UInt32 keepWindowSize, 64 SRes LzmaEnc_MemPrepare(CLzmaEncHandle pp, const Byte *src, SizeT srcLen, 66 SRes LzmaEnc_CodeOneMemBlock(CLzmaEncHandle pp, Bool reInit, 74 static SRes Lzma2EncInt_EncodeSubblock(CLzma2EncInt *p, Byte *outBuf, in Lzma2EncInt_EncodeSubblock() 82 SRes res; in Lzma2EncInt_EncodeSubblock() 252 static SRes Progress(ICompressProgress *p, UInt64 inSize, UInt64 outSize) in Progress() 280 static SRes Lzma2Enc_EncodeMt1(CLzma2EncInt *p, CLzma2Enc *mainEncoder, in Lzma2Enc_EncodeMt1() 284 SRes res = SZ_OK; in Lzma2Enc_EncodeMt1() 326 static SRes MtCallbackImp_Code(void *pp, unsigned index, Byte *dest, size_t *destSize, in MtCallbackImp_Code() [all …]
|
D | 7zDec.c | 43 SRes res; 68 static SRes SzDecodePpmd(const Byte *props, unsigned propsSize, UInt64 inSize, ILookInStream *inStr… in SzDecodePpmd() 73 SRes res = SZ_OK; in SzDecodePpmd() 129 static SRes SzDecodeLzma(const Byte *props, unsigned propsSize, UInt64 inSize, ILookInStream *inStr… in SzDecodeLzma() 133 SRes res = SZ_OK; in SzDecodeLzma() 177 static SRes SzDecodeLzma2(const Byte *props, unsigned propsSize, UInt64 inSize, ILookInStream *inSt… in SzDecodeLzma2() 181 SRes res = SZ_OK; in SzDecodeLzma2() 226 static SRes SzDecodeCopy(UInt64 inSize, ILookInStream *inStream, Byte *outBuffer) in SzDecodeCopy() 271 static SRes CheckSupportedFolder(const CSzFolder *f) in CheckSupportedFolder() 329 static SRes SzFolder_Decode2(const CSzFolder *folder, in SzFolder_Decode2() [all …]
|
D | XzIn.c | 12 SRes Xz_ReadHeader(CXzStreamFlags *p, ISeqInStream *inStream) in Xz_ReadHeader() 25 SRes XzBlock_ReadHeader(CXzBlock *p, ISeqInStream *inStream, Bool *isIndex, UInt32 *headerSizeRes) in XzBlock_ReadHeader() 73 static SRes Xz_ReadIndex2(CXzStream *p, const Byte *buf, size_t size, ISzAlloc *alloc) in Xz_ReadIndex2() 117 static SRes Xz_ReadIndex(CXzStream *p, ILookInStream *stream, UInt64 indexSize, ISzAlloc *alloc) in Xz_ReadIndex() 119 SRes res; in Xz_ReadIndex() 137 static SRes SeekFromCur(ILookInStream *inStream, Int64 *res) in SeekFromCur() 142 static SRes Xz_ReadBackward(CXzStream *p, ILookInStream *stream, Int64 *startOffset, ISzAlloc *allo… in Xz_ReadBackward() 274 SRes Xzs_ReadBackward(CXzs *p, ILookInStream *stream, Int64 *startOffset, ICompressProgress *progre… in Xzs_ReadBackward() 282 SRes res; in Xzs_ReadBackward()
|
D | Lzma86.h | 71 SRes Lzma86_Encode(Byte *dest, size_t *destLen, const Byte *src, size_t srcLen, 87 SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize); 107 SRes Lzma86_Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen);
|
D | Lzma2Dec.c | 63 static SRes Lzma2Dec_GetOldProps(Byte prop, Byte *props) in Lzma2Dec_GetOldProps() 77 SRes Lzma2Dec_AllocateProbs(CLzma2Dec *p, Byte prop, ISzAlloc *alloc) in Lzma2Dec_AllocateProbs() 84 SRes Lzma2Dec_Allocate(CLzma2Dec *p, Byte prop, ISzAlloc *alloc) in Lzma2Dec_Allocate() 172 SRes Lzma2Dec_DecodeToDic(CLzma2Dec *p, SizeT dicLimit, in Lzma2Dec_DecodeToDic() 246 SRes res; in Lzma2Dec_DecodeToDic() 293 SRes Lzma2Dec_DecodeToBuf(CLzma2Dec *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,… in Lzma2Dec_DecodeToBuf() 301 SRes res; in Lzma2Dec_DecodeToBuf() 332 SRes Lzma2Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in Lzma2Decode() 336 SRes res; in Lzma2Decode()
|
D | XzDec.c | 74 SRes BraState_SetProps(void *pp, const Byte *props, size_t propSize, ISzAlloc *alloc) in BraState_SetProps() 126 static SRes BraState_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in BraState_Code() 200 SRes BraState_SetFromMethod(IStateCoder *p, UInt64 id, int encodeMode, ISzAlloc *alloc) in BraState_SetFromMethod() 236 static SRes SbState_SetProps(void *pp, const Byte *props, size_t propSize, ISzAlloc *alloc) in SbState_SetProps() 249 static SRes SbState_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in SbState_Code() 253 SRes res; in SbState_Code() 267 SRes SbState_SetFromMethod(IStateCoder *p, ISzAlloc *alloc) in SbState_SetFromMethod() 293 static SRes Lzma2State_SetProps(void *pp, const Byte *props, size_t propSize, ISzAlloc *alloc) in Lzma2State_SetProps() 305 static SRes Lzma2State_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in Lzma2State_Code() 310 …SRes res = Lzma2Dec_DecodeToBuf((CLzma2Dec *)pp, dest, destLen, src, srcLen, (ELzmaFinishMode)fini… in Lzma2State_Code() [all …]
|
D | 7zArcIn.c | 69 static SRes SzBitUi32s_Alloc(CSzBitUi32s *p, size_t num, ISzAlloc *alloc) in SzBitUi32s_Alloc() 182 static SRes SzReadByte(CSzData *sd, Byte *b) in SzReadByte() 201 static MY_NO_INLINE SRes ReadNumber(CSzData *sd, UInt64 *value) in ReadNumber() 290 static MY_NO_INLINE SRes SzReadNumber32(CSzData *sd, UInt32 *value) in SzReadNumber32() 315 static SRes SkipData(CSzData *sd) in SkipData() 325 static SRes WaitId(CSzData *sd, UInt64 id) in WaitId() 339 static SRes RememberBitVector(CSzData *sd, UInt32 numItems, const Byte **v) in RememberBitVector() 367 static MY_NO_INLINE SRes ReadBitVector(CSzData *sd, UInt32 numItems, Byte **v, ISzAlloc *alloc) in ReadBitVector() 395 static MY_NO_INLINE SRes ReadUi32s(CSzData *sd2, UInt32 numItems, CSzBitUi32s *crcs, ISzAlloc *allo… in ReadUi32s() 416 static SRes ReadBitUi32s(CSzData *sd, UInt32 numItems, CSzBitUi32s *crcs, ISzAlloc *alloc) in ReadBitUi32s() [all …]
|
D | Lzma86Dec.c | 13 SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize) in Lzma86_GetUnpackSize() 24 SRes Lzma86_Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen) in Lzma86_Decode() 27 SRes res; in Lzma86_Decode()
|
D | 7z.h | 67 SRes SzGetNextFolderItem(CSzFolder *f, CSzData *sd, CSzData *sdSizes); 113 SRes SzAr_DecodeFolder(const CSzAr *p, UInt32 folderIndex, 187 SRes SzArEx_Extract( 211 SRes SzArEx_Open(CSzArEx *p, ILookInStream *inStream,
|
D | XzEnc.h | 32 SRes Xz_Encode(ISeqOutStream *outStream, ISeqInStream *inStream, 35 SRes Xz_EncodeEmpty(ISeqOutStream *outStream);
|
D | Lzma2Enc.h | 38 SRes Lzma2Enc_SetProps(CLzma2EncHandle p, const CLzma2EncProps *props); 40 SRes Lzma2Enc_Encode(CLzma2EncHandle p,
|
/external/lzma/CPP/7zip/Common/ |
D | CWrappers.cpp | 15 static SRes CompressProgress(void *pp, UInt64 inSize, UInt64 outSize) throw() in CompressProgress() 19 return (SRes)p->Res; in CompressProgress() 31 SRes HRESULT_To_SRes(HRESULT res, SRes defaultRes) in HRESULT_To_SRes() 45 static SRes MyRead(void *object, void *data, size_t *size) throw() in MyRead() 87 HRESULT SResToHRESULT(SRes res) throw() in SResToHRESULT() 101 static SRes InStreamWrap_Read(void *pp, void *data, size_t *size) throw() in InStreamWrap_Read() 110 static SRes InStreamWrap_Seek(void *pp, Int64 *offset, ESzSeek origin) throw() in InStreamWrap_Seek()
|
/external/lzma/C/Util/Lzma/ |
D | LzmaUtil.c | 41 int PrintErrorNumber(char *buffer, SRes val) in PrintErrorNumber() 55 static SRes Decode2(CLzmaDec *state, ISeqOutStream *outStream, ISeqInStream *inStream, in Decode2() 72 SRes res; in Decode2() 108 static SRes Decode(ISeqOutStream *outStream, ISeqInStream *inStream) in Decode() 112 SRes res = 0; in Decode() 134 static SRes Encode(ISeqOutStream *outStream, ISeqInStream *inStream, UInt64 fileSize, char *rs) in Encode() 137 SRes res; in Encode()
|
/external/lzma/CPP/7zip/Archive/ |
D | XzHandler.cpp | 97 SRes DecodeRes; 405 static SRes OpenCallbackProgress(void *pp, UInt64 inSize, UInt64 /* outSize */) in OpenCallbackProgress() 409 return (SRes)p->Res; in OpenCallbackProgress() 446 static HRESULT SRes_to_Open_HRESULT(SRes res) in SRes_to_Open_HRESULT() 472 SRes res = Xz_ReadHeader(&st, &inStreamWrap.p); in Open2() 480 SRes res2 = XzBlock_ReadHeader(&block, &inStreamWrap.p, &isIndex, &headerSizeRes); in Open2() 504 SRes res = Xzs_ReadBackward(&xzs.p, &lookStream.s, &startPosition, &openWrap.p, &g_Alloc); in Open2() 638 SRes res = XzUnpacker_Code(&xzu.p, in Decode() 815 SRes res = Xz_EncodeEmpty(&seqOutStream.p); in UpdateItems() 925 SRes res = Xz_Encode(&seqOutStream.p, &seqInStream.p, &xzProps, &progressWrap.p); in UpdateItems()
|
/external/lzma/CPP/7zip/Compress/ |
D | Lzma2Decoder.cpp | 11 static HRESULT SResToHRESULT(SRes res) in SResToHRESULT() 113 …SRes res = Lzma2Dec_DecodeToDic(&_state, dicPos + curSize, _inBuf + _inPos, &inSizeProcessed, fini… in Code() 169 SRes res = Lzma2Dec_DecodeToBuf(&_state, (Byte *)data, &outProcessed, in Read()
|
/external/lzma/C/Util/7z/ |
D | 7zMain.c | 89 static SRes Utf16_To_Utf8Buf(CBuf *dest, const UInt16 *src, size_t srcLen) in Utf16_To_Utf8Buf() 104 static SRes Utf16_To_Char(CBuf *buf, const UInt16 *s in Utf16_To_Char() 188 static SRes PrintString(const UInt16 *s) in PrintString() 191 SRes res; in PrintString() 313 SRes res; in main()
|