Home
last modified time | relevance | path

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

12

/external/lzma/C/
DTypes.h43 typedef int SRes; typedef
139 SRes (*Read)(void *p, void *buf, size_t *size);
145 SRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size);
146 SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType);
147 SRes SeqInStream_ReadByte(ISeqInStream *stream, Byte *buf);
165 SRes (*Read)(void *p, void *buf, size_t *size); /* same as ISeqInStream::Read */
166 SRes (*Seek)(void *p, Int64 *pos, ESzSeek origin);
171 SRes (*Look)(void *p, const void **buf, size_t *size);
175 SRes (*Skip)(void *p, size_t offset);
178 SRes (*Read)(void *p, void *buf, size_t *size);
[all …]
D7zStream.c8 SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType) in SeqInStream_Read2()
22 SRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size) in SeqInStream_Read()
27 SRes SeqInStream_ReadByte(ISeqInStream *stream, Byte *buf) in SeqInStream_ReadByte()
34 SRes LookInStream_SeekTo(ILookInStream *stream, UInt64 offset) in LookInStream_SeekTo()
40 SRes LookInStream_LookRead(ILookInStream *stream, void *buf, size_t *size) in LookInStream_LookRead()
50 SRes LookInStream_Read2(ILookInStream *stream, void *buf, size_t size, SRes errorType) in LookInStream_Read2()
64 SRes LookInStream_Read(ILookInStream *stream, void *buf, size_t size) in LookInStream_Read()
69 static SRes LookToRead_Look_Lookahead(void *pp, const void **buf, size_t *size) in LookToRead_Look_Lookahead()
71 SRes res = SZ_OK; in LookToRead_Look_Lookahead()
87 static SRes LookToRead_Look_Exact(void *pp, const void **buf, size_t *size) in LookToRead_Look_Exact()
[all …]
DXz.h54 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,
223 SRes XzUnpacker_Create(CXzUnpacker *p, ISzAlloc *alloc);
[all …]
DXzEnc.c30 static SRes WriteBytes(ISeqOutStream *s, const void *buf, UInt32 size) in WriteBytes()
35 static SRes WriteBytesAndCrc(ISeqOutStream *s, const void *buf, UInt32 size, UInt32 *crc) in WriteBytesAndCrc()
41 SRes Xz_WriteHeader(CXzStreamFlags f, ISeqOutStream *s) in Xz_WriteHeader()
53 SRes XzBlock_WriteHeader(const CXzBlock *p, ISeqOutStream *s) in XzBlock_WriteHeader()
79 SRes Xz_WriteFooter(CXzStream *p, ISeqOutStream *s) in Xz_WriteFooter()
124 SRes Xz_AddIndexRecord(CXzStream *p, UInt64 unpackSize, UInt64 totalSize, ISzAlloc *alloc) in Xz_AddIndexRecord()
173 static SRes SeqCheckInStream_Read(void *pp, void *data, size_t *size) in SeqCheckInStream_Read()
176 SRes res = p->realStream->Read(p->realStream, data, size); in SeqCheckInStream_Read()
337 static SRes SbEncInStream_Read(void *pp, void *data, size_t *size) in SbEncInStream_Read()
340 SRes res = SubblockEnc_Read(&p->sb, data, size); in SbEncInStream_Read()
[all …]
DLzmaDec.h40 SRes LzmaProps_Decode(CLzmaProps *p, const Byte *data, unsigned size);
134 SRes LzmaDec_AllocateProbs(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAlloc *alloc);
137 SRes LzmaDec_Allocate(CLzmaDec *state, const Byte *prop, unsigned propsSize, ISzAlloc *alloc);
181 SRes LzmaDec_DecodeToDic(CLzmaDec *p, SizeT dicLimit,
198 SRes LzmaDec_DecodeToBuf(CLzmaDec *p, Byte *dest, SizeT *destLen,
223 SRes LzmaDecode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
DLzma2Dec.h31 SRes Lzma2Dec_AllocateProbs(CLzma2Dec *p, Byte prop, ISzAlloc *alloc);
32 SRes Lzma2Dec_Allocate(CLzma2Dec *p, Byte prop, ISzAlloc *alloc);
51 SRes Lzma2Dec_DecodeToDic(CLzma2Dec *p, SizeT dicLimit,
54 SRes Lzma2Dec_DecodeToBuf(CLzma2Dec *p, Byte *dest, SizeT *destLen,
77 SRes Lzma2Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
DLzmaEnc.h54 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,
DMtCoder.h41 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);
DMtCoder.c56 static SRes Progress(ICompressProgress *p, UInt64 inSize, UInt64 outSize) in Progress()
80 SRes MtProgress_Set(CMtProgress *p, unsigned index, UInt64 inSize, UInt64 outSize) in MtProgress_Set()
82 SRes res; in MtProgress_Set()
93 static void MtProgress_SetError(CMtProgress *p, SRes res) in MtProgress_SetError()
101 static void MtCoder_SetError(CMtCoder* p, SRes res) in MtCoder_SetError()
154 static SRes CMtThread_Prepare(CMtThread *p) in CMtThread_Prepare()
167 static SRes FullRead(ISeqInStream *stream, Byte *data, size_t *processedSize) in FullRead()
174 SRes res = stream->Read(stream, data, &curSize); in FullRead()
187 static SRes MtThread_Process(CMtThread *p, Bool *stop) in MtThread_Process()
233 SRes res = MtThread_Process(p, &stop); in ThreadFunc()
[all …]
D7zIn.c179 static SRes SzArEx_Fill(CSzArEx *p, ISzAlloc *alloc) in SzArEx_Fill()
316 static SRes SzReadByte(CSzData *sd, Byte *b) in SzReadByte()
325 static SRes SzReadBytes(CSzData *sd, Byte *data, size_t size) in SzReadBytes()
335 static SRes SzReadUInt32(CSzData *sd, UInt32 *value) in SzReadUInt32()
348 static SRes SzReadNumber(CSzData *sd, UInt64 *value) in SzReadNumber()
371 static SRes SzReadNumber32(CSzData *sd, UInt32 *value) in SzReadNumber32()
383 static SRes SzReadID(CSzData *sd, UInt64 *value) in SzReadID()
388 static SRes SzSkeepDataSize(CSzData *sd, UInt64 size) in SzSkeepDataSize()
397 static SRes SzSkeepData(CSzData *sd) in SzSkeepData()
404 static SRes SzReadArchiveProperties(CSzData *sd) in SzReadArchiveProperties()
[all …]
DLzma2Enc.c47 static SRes Lzma2EncInt_Init(CLzma2EncInt *p, const CLzma2EncProps *props) in Lzma2EncInt_Init()
60 SRes LzmaEnc_PrepareForLzma2(CLzmaEncHandle pp, ISeqInStream *inStream, UInt32 keepWindowSize,
62 SRes LzmaEnc_MemPrepare(CLzmaEncHandle pp, const Byte *src, SizeT srcLen,
64 SRes LzmaEnc_CodeOneMemBlock(CLzmaEncHandle pp, Bool reInit,
72 static SRes Lzma2EncInt_EncodeSubblock(CLzma2EncInt *p, Byte *outBuf, in Lzma2EncInt_EncodeSubblock()
80 SRes res; in Lzma2EncInt_EncodeSubblock()
236 static SRes Progress(ICompressProgress *p, UInt64 inSize, UInt64 outSize) in Progress()
264 static SRes Lzma2Enc_EncodeMt1(CLzma2EncInt *p, CLzma2Enc *mainEncoder, in Lzma2Enc_EncodeMt1()
268 SRes res = SZ_OK; in Lzma2Enc_EncodeMt1()
310 static SRes MtCallbackImp_Code(void *pp, unsigned index, Byte *dest, size_t *destSize, in MtCallbackImp_Code()
[all …]
D7zDec.c41 SRes res;
66 static SRes SzDecodePpmd(CSzCoderInfo *coder, UInt64 inSize, ILookInStream *inStream, in SzDecodePpmd()
71 SRes res = SZ_OK; in SzDecodePpmd()
127 static SRes SzDecodeLzma(CSzCoderInfo *coder, UInt64 inSize, ILookInStream *inStream, in SzDecodeLzma()
131 SRes res = SZ_OK; in SzDecodeLzma()
175 static SRes SzDecodeLzma2(CSzCoderInfo *coder, UInt64 inSize, ILookInStream *inStream, in SzDecodeLzma2()
179 SRes res = SZ_OK; in SzDecodeLzma2()
224 static SRes SzDecodeCopy(UInt64 inSize, ILookInStream *inStream, Byte *outBuffer) in SzDecodeCopy()
269 static SRes CheckSupportedFolder(const CSzFolder *f) in CheckSupportedFolder()
335 static SRes SzFolder_Decode2(const CSzFolder *folder, const UInt64 *packSizes, in SzFolder_Decode2()
[all …]
DXzDec.c71 SRes BraState_SetProps(void *pp, const Byte *props, size_t propSize, ISzAlloc *alloc) in BraState_SetProps()
124 static SRes BraState_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in BraState_Code()
198 SRes BraState_SetFromMethod(IStateCoder *p, UInt64 id, ISzAlloc *alloc) in BraState_SetFromMethod()
233 static SRes SbState_SetProps(void *pp, const Byte *props, size_t propSize, ISzAlloc *alloc) in SbState_SetProps()
246 static SRes SbState_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in SbState_Code()
250SRes res = SubblockDec_Decode((CSubblockDec *)pp, dest, destLen, src, srcLen, finishMode, &status); in SbState_Code()
256 SRes SbState_SetFromMethod(IStateCoder *p, ISzAlloc *alloc) in SbState_SetFromMethod()
281 static SRes Lzma2State_SetProps(void *pp, const Byte *props, size_t propSize, ISzAlloc *alloc) in Lzma2State_SetProps()
293 static SRes Lzma2State_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in Lzma2State_Code()
298 SRes res = Lzma2Dec_DecodeToBuf((CLzma2Dec *)pp, dest, destLen, src, srcLen, finishMode, &status); in Lzma2State_Code()
[all …]
DXzIn.c10 SRes Xz_ReadHeader(CXzStreamFlags *p, ISeqInStream *inStream) in Xz_ReadHeader()
23 SRes XzBlock_ReadHeader(CXzBlock *p, ISeqInStream *inStream, Bool *isIndex, UInt32 *headerSizeRes) in XzBlock_ReadHeader()
71 static SRes Xz_ReadIndex2(CXzStream *p, const Byte *buf, size_t size, ISzAlloc *alloc) in Xz_ReadIndex2()
116 static SRes Xz_ReadIndex(CXzStream *p, ILookInStream *stream, UInt64 indexSize, ISzAlloc *alloc) in Xz_ReadIndex()
118 SRes res; in Xz_ReadIndex()
136 static SRes SeekFromCur(ILookInStream *inStream, Int64 *res) in SeekFromCur()
141 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()
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);
DLzma2Dec.c61 static SRes Lzma2Dec_GetOldProps(Byte prop, Byte *props) in Lzma2Dec_GetOldProps()
75 SRes Lzma2Dec_AllocateProbs(CLzma2Dec *p, Byte prop, ISzAlloc *alloc) in Lzma2Dec_AllocateProbs()
82 SRes Lzma2Dec_Allocate(CLzma2Dec *p, Byte prop, ISzAlloc *alloc) in Lzma2Dec_Allocate()
170 SRes Lzma2Dec_DecodeToDic(CLzma2Dec *p, SizeT dicLimit, in Lzma2Dec_DecodeToDic()
244 SRes res; in Lzma2Dec_DecodeToDic()
291 SRes Lzma2Dec_DecodeToBuf(CLzma2Dec *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,… in Lzma2Dec_DecodeToBuf()
299 SRes res; in Lzma2Dec_DecodeToBuf()
330 SRes Lzma2Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, in Lzma2Decode()
334 SRes res; in Lzma2Decode()
DLzma86Dec.c13 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()
DXzEnc.h15 SRes Xz_Encode(ISeqOutStream *outStream, ISeqInStream *inStream,
19 SRes Xz_EncodeEmpty(ISeqOutStream *outStream);
DLzma2Enc.h40 SRes Lzma2Enc_SetProps(CLzma2EncHandle p, const CLzma2EncProps *props);
42 SRes Lzma2Enc_Encode(CLzma2EncHandle p,
D7z.h84 SRes SzFolder_Decode(const CSzFolder *folder, const UInt64 *packSizes,
175 SRes SzArEx_Extract(
199 SRes SzArEx_Open(CSzArEx *p, ILookInStream *inStream, ISzAlloc *allocMain, ISzAlloc *allocTemp);
/external/lzma/CPP/7zip/Common/
DCWrappers.cpp15 static SRes CompressProgress(void *pp, UInt64 inSize, UInt64 outSize) in CompressProgress()
19 return (SRes)p->Res; in CompressProgress()
31 SRes HRESULT_To_SRes(HRESULT res, SRes defaultRes) in HRESULT_To_SRes()
44 static SRes MyRead(void *object, void *data, size_t *size) in MyRead()
84 HRESULT SResToHRESULT(SRes res) in SResToHRESULT()
97 static SRes InStreamWrap_Read(void *pp, void *data, size_t *size) in InStreamWrap_Read()
106 static SRes InStreamWrap_Seek(void *pp, Int64 *offset, ESzSeek origin) in InStreamWrap_Seek()
/external/lzma/C/Util/Lzma/
DLzmaUtil.c41 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/
DXzHandler.cpp300 static SRes OpenCallbackProgress(void *pp, UInt64 inSize, UInt64 /* outSize */) in OpenCallbackProgress()
304 return (SRes)p->Res; in OpenCallbackProgress()
335 SRes res = Xzs_ReadBackward(&xzs.p, &lookStream.s, &_startPosition, &openWrap.p, &g_Alloc); in Open2()
348 SRes res2 = Xz_ReadHeader(&st, &inStreamWrap.p); in Open2()
371 SRes res2 = Xz_ReadHeader(&st, &inStreamWrap.p); in Open2()
486 SRes res; in Extract()
596 SRes res = Xz_EncodeEmpty(&seqOutStream.p); in UpdateItems()
669 SRes res = Xz_Encode(&seqOutStream.p, &seqInStream.p, &lzma2Props, False, &progressWrap.p); in UpdateItems()
/external/lzma/CPP/7zip/Compress/
DLzma2Decoder.cpp11 static HRESULT SResToHRESULT(SRes res) in SResToHRESULT()
113SRes 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/
D7zMain.c86 static SRes Utf16_To_Utf8Buf(CBuf *dest, const UInt16 *src, size_t srcLen) in Utf16_To_Utf8Buf()
100 static SRes Utf16_To_Char(CBuf *buf, const UInt16 *s, int fileMode) in Utf16_To_Char()
175 static SRes PrintString(const UInt16 *s) in PrintString()
178 SRes res; in PrintString()
289 SRes res; in main()

12