Home
last modified time | relevance | path

Searched refs:SRes (Results 1 – 25 of 51) sorted by relevance

123

/third_party/lzma/C/
D7zStream.c10 SRes SeqInStream_Read2(const ISeqInStream *stream, void *buf, size_t size, SRes errorType) in SeqInStream_Read2()
24 SRes SeqInStream_Read(const ISeqInStream *stream, void *buf, size_t size) in SeqInStream_Read()
29 SRes SeqInStream_ReadByte(const ISeqInStream *stream, Byte *buf) in SeqInStream_ReadByte()
38 SRes LookInStream_SeekTo(const ILookInStream *stream, UInt64 offset) in LookInStream_SeekTo()
44 SRes LookInStream_LookRead(const ILookInStream *stream, void *buf, size_t *size) in LookInStream_LookRead()
54 SRes LookInStream_Read2(const ILookInStream *stream, void *buf, size_t size, SRes errorType) in LookInStream_Read2()
68 SRes LookInStream_Read(const ILookInStream *stream, void *buf, size_t size) in LookInStream_Read()
77 static SRes LookToRead2_Look_Lookahead(const ILookInStream *pp, const void **buf, size_t *size) in LookToRead2_Look_Lookahead()
79 SRes res = SZ_OK; in LookToRead2_Look_Lookahead()
96 static SRes LookToRead2_Look_Exact(const ILookInStream *pp, const void **buf, size_t *size) in LookToRead2_Look_Exact()
[all …]
DMtDec.h27 SRes res;
34 SRes MtProgress_Progress_ST(CMtProgress *p);
35 SRes MtProgress_ProgressAdd(CMtProgress *p, UInt64 inSize, UInt64 outSize);
36 SRes MtProgress_GetError(CMtProgress *p);
37 void MtProgress_SetError(CMtProgress *p, SRes res);
90 SRes (*PreCode)(void *p, unsigned coderIndex);
91 SRes (*Code)(void *p, unsigned coderIndex,
109 SRes (*Write)(void *p, unsigned coderIndex,
150 SRes threadingErrorSRes;
156 SRes readRes;
[all …]
DXz.h55 SRes XzBlock_Parse(CXzBlock *p, const Byte *header);
56 SRes XzBlock_ReadHeader(CXzBlock *p, ISeqInStream *inStream, BoolInt *isIndex, UInt32 *headerSizeRe…
103 SRes Xz_ParseHeader(CXzStreamFlags *p, const Byte *buf);
104 SRes Xz_ReadHeader(CXzStreamFlags *p, ISeqInStream *inStream);
137 SRes Xzs_ReadBackward(CXzs *p, ILookInStream *inStream, Int64 *startOffset, ICompressProgress *prog…
167 SRes (*SetProps)(void *p, const Byte *props, size_t propSize, ISzAllocPtr alloc);
169 SRes (*Code2)(void *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
190 SRes res;
198 SRes results[MIXCODER_NUM_FILTERS_MAX];
341 SRes XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen,
[all …]
D7zTypes.h45 typedef int SRes; typedef
318 SRes (*Read)(const ISeqInStream *p, void *buf, size_t *size);
325 SRes SeqInStream_Read(const ISeqInStream *stream, void *buf, size_t size);
326 SRes SeqInStream_Read2(const ISeqInStream *stream, void *buf, size_t size, SRes errorType);
327 SRes SeqInStream_ReadByte(const ISeqInStream *stream, Byte *buf);
350 SRes (*Read)(const ISeekInStream *p, void *buf, size_t *size); /* same as ISeqInStream::Read */
351 SRes (*Seek)(const ISeekInStream *p, Int64 *pos, ESzSeek origin);
360 SRes (*Look)(const ILookInStream *p, const void **buf, size_t *size);
364 SRes (*Skip)(const ILookInStream *p, size_t offset);
367 SRes (*Read)(const ILookInStream *p, void *buf, size_t *size);
[all …]
DMtCoder.h60 SRes (*Code)(void *p, unsigned coderIndex, unsigned outBufIndex,
62 SRes (*Write)(void *p, unsigned outBufIndex);
68 SRes res;
101 SRes readRes;
107 SRes writeRes;
133 SRes MtCoder_Code(CMtCoder *p);
DLzmaDec.h43 SRes LzmaProps_Decode(CLzmaProps *p, const Byte *data, unsigned size);
139 SRes LzmaDec_AllocateProbs(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAllocPtr alloc);
142 SRes LzmaDec_Allocate(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAllocPtr alloc);
187 SRes LzmaDec_DecodeToDic(CLzmaDec *p, SizeT dicLimit,
204 SRes LzmaDec_DecodeToBuf(CLzmaDec *p, Byte *dest, SizeT *destLen,
230 SRes LzmaDecode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
DLzmaEnc.h59 SRes LzmaEnc_SetProps(CLzmaEncHandle p, const CLzmaEncProps *props);
61 SRes LzmaEnc_WriteProperties(CLzmaEncHandle p, Byte *properties, SizeT *size);
64 SRes LzmaEnc_Encode(CLzmaEncHandle p, ISeqOutStream *outStream, ISeqInStream *inStream,
66 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,
DLzma2Dec.h29 SRes Lzma2Dec_AllocateProbs(CLzma2Dec *p, Byte prop, ISzAllocPtr alloc);
30 SRes Lzma2Dec_Allocate(CLzma2Dec *p, Byte prop, ISzAllocPtr alloc);
48 SRes Lzma2Dec_DecodeToDic(CLzma2Dec *p, SizeT dicLimit,
51 SRes Lzma2Dec_DecodeToBuf(CLzma2Dec *p, Byte *dest, SizeT *destLen,
115 SRes Lzma2Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
DXzEnc.h49 SRes XzEnc_SetProps(CXzEncHandle p, const CXzProps *props);
51 SRes XzEnc_Encode(CXzEncHandle p, ISeqOutStream *outStream, ISeqInStream *inStream, ICompressProgre…
53 SRes Xz_Encode(ISeqOutStream *outStream, ISeqInStream *inStream,
56 SRes Xz_EncodeEmpty(ISeqOutStream *outStream);
DXzEnc.c44 static SRes WriteBytes(ISeqOutStream *s, const void *buf, size_t size) in WriteBytes()
49 static SRes WriteBytesUpdateCrc(ISeqOutStream *s, const void *buf, size_t size, UInt32 *crc) in WriteBytesUpdateCrc()
56 static SRes Xz_WriteHeader(CXzStreamFlags f, ISeqOutStream *s) in Xz_WriteHeader()
69 static SRes XzBlock_WriteHeader(const CXzBlock *p, ISeqOutStream *s) in XzBlock_WriteHeader()
137 static SRes XzEncIndex_ReAlloc(CXzEncIndex *p, size_t newSize, ISzAllocPtr alloc) in XzEncIndex_ReAlloc()
152 static SRes XzEncIndex_PreAlloc(CXzEncIndex *p, UInt64 numBlocks, UInt64 unpackSize, UInt64 totalSi… in XzEncIndex_PreAlloc()
174 static SRes XzEncIndex_AddIndexRecord(CXzEncIndex *p, UInt64 unpackSize, UInt64 totalSize, ISzAlloc… in XzEncIndex_AddIndexRecord()
194 static SRes XzEncIndex_WriteFooter(const CXzEncIndex *p, CXzStreamFlags flags, ISeqOutStream *s) in XzEncIndex_WriteFooter()
254 static SRes SeqCheckInStream_Read(const ISeqInStream *pp, void *data, size_t *size) in SeqCheckInStream_Read()
258 SRes res = SZ_OK; in SeqCheckInStream_Read()
[all …]
DLzma2Enc.c56 static SRes LimitedSeqInStream_Read(const ISeqInStream *pp, void *data, size_t *size) in LimitedSeqInStream_Read()
60 SRes res = SZ_OK; in LimitedSeqInStream_Read()
92 static SRes Lzma2EncInt_InitStream(CLzma2EncInt *p, const CLzma2EncProps *props) in Lzma2EncInt_InitStream()
114 SRes LzmaEnc_PrepareForLzma2(CLzmaEncHandle pp, ISeqInStream *inStream, UInt32 keepWindowSize,
116 SRes LzmaEnc_MemPrepare(CLzmaEncHandle pp, const Byte *src, SizeT srcLen,
118 SRes LzmaEnc_CodeOneMemBlock(CLzmaEncHandle pp, BoolInt reInit,
129 static SRes Lzma2EncInt_EncodeSubblock(CLzma2EncInt *p, Byte *outBuf, in Lzma2EncInt_EncodeSubblock()
137 SRes res; in Lzma2EncInt_EncodeSubblock()
347 static SRes Progress(ICompressProgress *p, UInt64 inSize, UInt64 outSize) in Progress()
465 SRes Lzma2Enc_SetProps(CLzma2EncHandle pp, const CLzma2EncProps *props) in Lzma2Enc_SetProps()
[all …]
DXzDec.c96 static SRes BraState_SetProps(void *pp, const Byte *props, size_t propSize, ISzAllocPtr alloc) in BraState_SetProps()
174 static SRes BraState_Code2(void *pp, in BraState_Code2()
243 SRes BraState_SetFromMethod(IStateCoder *p, UInt64 id, int encodeMode, ISzAllocPtr alloc);
244 SRes BraState_SetFromMethod(IStateCoder *p, UInt64 id, int encodeMode, ISzAllocPtr alloc) in BraState_SetFromMethod()
280 static SRes SbState_SetProps(void *pp, const Byte *props, size_t propSize, ISzAllocPtr alloc) in SbState_SetProps()
293 static SRes SbState_Code2(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in SbState_Code2()
299 SRes res; in SbState_Code2()
316 static SRes SbState_SetFromMethod(IStateCoder *p, ISzAllocPtr alloc) in SbState_SetFromMethod()
359 static SRes Lzma2State_SetProps(void *pp, const Byte *props, size_t propSize, ISzAllocPtr alloc) in Lzma2State_SetProps()
383 static SRes Lzma2State_Code2(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in Lzma2State_Code2()
[all …]
DXzIn.c18 SRes Xz_ReadHeader(CXzStreamFlags *p, ISeqInStream *inStream) in Xz_ReadHeader()
32 SRes XzBlock_ReadHeader(CXzBlock *p, ISeqInStream *inStream, BoolInt *isIndex, UInt32 *headerSizeRe… in XzBlock_ReadHeader()
81 static SRes Xz_ReadIndex2(CXzStream *p, const Byte *buf, size_t size, ISzAllocPtr alloc) in Xz_ReadIndex2()
125 static SRes Xz_ReadIndex(CXzStream *p, ILookInStream *stream, UInt64 indexSize, ISzAllocPtr alloc) in Xz_ReadIndex()
127 SRes res; in Xz_ReadIndex()
145 static SRes LookInStream_SeekRead_ForArc(ILookInStream *stream, UInt64 offset, void *buf, size_t si… in LookInStream_SeekRead_ForArc()
152 static SRes Xz_ReadBackward(CXzStream *p, ILookInStream *stream, Int64 *startOffset, ISzAllocPtr al… in Xz_ReadBackward()
292 SRes Xzs_ReadBackward(CXzs *p, ILookInStream *stream, Int64 *startOffset, ICompressProgress *progre… in Xzs_ReadBackward()
300 SRes res; in Xzs_ReadBackward()
DMtDec.c36 SRes MtProgress_Progress_ST(CMtProgress *p) in MtProgress_Progress_ST()
45 SRes MtProgress_ProgressAdd(CMtProgress *p, UInt64 inSize, UInt64 outSize) in MtProgress_ProgressAdd()
47 SRes res; in MtProgress_ProgressAdd()
62 SRes MtProgress_GetError(CMtProgress *p) in MtProgress_GetError()
64 SRes res; in MtProgress_GetError()
72 void MtProgress_SetError(CMtProgress *p, SRes res) in MtProgress_SetError()
121 static SRes MtDecThread_CreateAndStart(CMtDecThread *t) in MtDecThread_CreateAndStart()
182 static SRes FullRead(ISeqInStream *stream, Byte *data, size_t *processedSize) in FullRead()
189 SRes res = ISeqInStream_Read(stream, data, &cur); in FullRead()
201 static SRes MtDec_GetError_Spec(CMtDec *p, UInt64 interruptIndex, BoolInt *wasInterrupted) in MtDec_GetError_Spec()
[all …]
DLzma86.h71 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);
DLzma2DecMt.c72 SRes codeRes;
104 SRes readRes;
415 static SRes Lzma2DecMt_MtCallback_PreCode(void *pp, unsigned coderIndex) in Lzma2DecMt_MtCallback_PreCode()
455 static SRes Lzma2DecMt_MtCallback_Code(void *pp, unsigned coderIndex, in Lzma2DecMt_MtCallback_Code()
484 SRes res = Lzma2Dec_DecodeToDic(&t->dec, in Lzma2DecMt_MtCallback_Code()
528 static SRes Lzma2DecMt_MtCallback_Write(void *pp, unsigned coderIndex, in Lzma2DecMt_MtCallback_Write()
610 static SRes Lzma2Dec_Prepare_ST(CLzma2DecMt *p) in Lzma2Dec_Prepare_ST()
636 static SRes Lzma2Dec_Decode_ST(CLzma2DecMt *p in Lzma2Dec_Decode_ST()
676 SRes res; in Lzma2Dec_Decode_ST()
747 SRes res2; in Lzma2Dec_Decode_ST()
[all …]
D7zDec.c51 SRes res;
76 static SRes SzDecodePpmd(const Byte *props, unsigned propsSize, UInt64 inSize, const ILookInStream … in SzDecodePpmd()
81 SRes res = SZ_OK; in SzDecodePpmd()
141 static SRes SzDecodeLzma(const Byte *props, unsigned propsSize, UInt64 inSize, ILookInStream *inStr… in SzDecodeLzma()
145 SRes res = SZ_OK; in SzDecodeLzma()
201 static SRes SzDecodeLzma2(const Byte *props, unsigned propsSize, UInt64 inSize, ILookInStream *inSt… in SzDecodeLzma2()
205 SRes res = SZ_OK; in SzDecodeLzma2()
260 static SRes SzDecodeCopy(UInt64 inSize, ILookInStream *inStream, Byte *outBuffer) in SzDecodeCopy()
306 static SRes CheckSupportedFolder(const CSzFolder *f) in CheckSupportedFolder()
379 static SRes SzFolder_Decode2(const CSzFolder *folder, in SzFolder_Decode2()
[all …]
DLzma2DecMt.h46 SRes Lzma2DecMt_Decode(CLzma2DecMtHandle p,
66 SRes Lzma2DecMt_Init(CLzma2DecMtHandle pp,
72 SRes Lzma2DecMt_Read(CLzma2DecMtHandle pp,
D7zArcIn.c63 static SRes SzBitUi32s_Alloc(CSzBitUi32s *p, size_t num, ISzAllocPtr alloc) in SzBitUi32s_Alloc()
195 static MY_NO_INLINE SRes ReadNumber(CSzData *sd, UInt64 *value) in ReadNumber()
233 static MY_NO_INLINE SRes SzReadNumber32(CSzData *sd, UInt32 *value) in SzReadNumber32()
258 static SRes SkipData(CSzData *sd) in SkipData()
268 static SRes WaitId(CSzData *sd, UInt32 id) in WaitId()
282 static SRes RememberBitVector(CSzData *sd, UInt32 numItems, const Byte **v) in RememberBitVector()
310 static MY_NO_INLINE SRes ReadBitVector(CSzData *sd, UInt32 numItems, Byte **v, ISzAllocPtr alloc) in ReadBitVector()
338 static MY_NO_INLINE SRes ReadUi32s(CSzData *sd2, UInt32 numItems, CSzBitUi32s *crcs, ISzAllocPtr al… in ReadUi32s()
359 static SRes ReadBitUi32s(CSzData *sd, UInt32 numItems, CSzBitUi32s *crcs, ISzAllocPtr alloc) in ReadBitUi32s()
366 static SRes SkipBitUi32s(CSzData *sd, UInt32 numItems) in SkipBitUi32s()
[all …]
DLzma2Dec.c57 static SRes Lzma2Dec_GetOldProps(Byte prop, Byte *props) in Lzma2Dec_GetOldProps()
71 SRes Lzma2Dec_AllocateProbs(CLzma2Dec *p, Byte prop, ISzAllocPtr alloc) in Lzma2Dec_AllocateProbs()
78 SRes Lzma2Dec_Allocate(CLzma2Dec *p, Byte prop, ISzAllocPtr alloc) in Lzma2Dec_Allocate()
176 SRes Lzma2Dec_DecodeToDic(CLzma2Dec *p, SizeT dicLimit, in Lzma2Dec_DecodeToDic()
254 SRes res; in Lzma2Dec_DecodeToDic()
428 SRes Lzma2Dec_DecodeToBuf(CLzma2Dec *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,… in Lzma2Dec_DecodeToBuf()
437 SRes res; in Lzma2Dec_DecodeToBuf()
469 SRes Lzma2Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in Lzma2Decode()
473 SRes res; in Lzma2Decode()
DLzma86Dec.c12 SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize) in Lzma86_GetUnpackSize()
23 SRes Lzma86_Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen) in Lzma86_Decode()
25 SRes res; in Lzma86_Decode()
DMtCoder.c10 static SRes MtProgressThunk_Progress(const ICompressProgress *pp, UInt64 inSize, UInt64 outSize) in MtProgressThunk_Progress()
50 static SRes MtCoderThread_CreateAndStart(CMtCoderThread *t) in MtCoderThread_CreateAndStart()
87 static SRes FullRead(ISeqInStream *stream, Byte *data, size_t *processedSize) in FullRead()
94 SRes res = ISeqInStream_Read(stream, data, &cur); in FullRead()
112 static SRes ThreadFunc2(CMtCoderThread *t) in ThreadFunc2()
119 SRes res; in ThreadFunc2()
120 SRes res2; in ThreadFunc2()
348 SRes res = ThreadFunc2(t); in ThreadFunc()
451 SRes MtCoder_Code(CMtCoder *p) in MtCoder_Code()
456 SRes res = SZ_OK; in MtCoder_Code()
D7z.h54 SRes SzGetNextFolderItem(CSzFolder *f, CSzData *sd);
100 SRes SzAr_DecodeFolder(const CSzAr *p, UInt32 folderIndex,
175 SRes SzArEx_Extract(
199 SRes SzArEx_Open(CSzArEx *p, ILookInStream *inStream,
/third_party/lzma/CPP/7zip/Common/
DCWrappers.cpp11 SRes HRESULT_To_SRes(HRESULT res, SRes defaultRes) throw() in HRESULT_To_SRes()
26 HRESULT SResToHRESULT(SRes res) throw() in SResToHRESULT()
60 static SRes CompressProgress(const ICompressProgress *pp, UInt64 inSize, UInt64 outSize) throw() in CompressProgress()
76 static SRes MyRead(const ISeqInStream *pp, void *data, size_t *size) throw() in MyRead()
121 static SRes InStreamWrap_Read(const ISeekInStream *pp, void *data, size_t *size) throw() in InStreamWrap_Read()
130 static SRes InStreamWrap_Seek(const ISeekInStream *pp, Int64 *offset, ESzSeek origin) throw() in InStreamWrap_Seek()
/third_party/lzma/C/Util/Lzma/
DLzmaUtil.c57 static int PrintErrorNumber(char *buffer, SRes val) in PrintErrorNumber()
73 static SRes Decode2(CLzmaDec *state, ISeqOutStream *outStream, ISeqInStream *inStream, in Decode2()
90 SRes res; in Decode2()
127 static SRes Decode(ISeqOutStream *outStream, ISeqInStream *inStream) in Decode()
131 SRes res = 0; in Decode()
153 static SRes Encode(ISeqOutStream *outStream, ISeqInStream *inStream, UInt64 fileSize, char *rs) in Encode()
156 SRes res; in Encode()

123