Home
last modified time | relevance | path

Searched refs:unpackSize (Results 1 – 24 of 24) sorted by relevance

/external/lzma/C/Util/Lzma/
DLzmaUtil.c56 UInt64 unpackSize) in Decode2() argument
58 int thereIsSize = (unpackSize != (UInt64)(Int64)-1); in Decode2()
77 if (thereIsSize && outProcessed > unpackSize) in Decode2()
79 outProcessed = (SizeT)unpackSize; in Decode2()
87 unpackSize -= outProcessed; in Decode2()
95 if (res != SZ_OK || (thereIsSize && unpackSize == 0)) in Decode2()
110 UInt64 unpackSize; in Decode() local
123 unpackSize = 0; in Decode()
125 unpackSize += (UInt64)header[LZMA_PROPS_SIZE + i] << (i * 8); in Decode()
129 res = Decode2(&state, outStream, inStream, unpackSize); in Decode()
/external/lzma/CPP/7zip/Bundles/LzmaSpec/
DLzmaSpec.cpp354 int Decode(bool unpackSizeDefined, UInt64 unpackSize);
467 int CLzmaDecoder::Decode(bool unpackSizeDefined, UInt64 unpackSize) in Decode() argument
477 if (unpackSizeDefined && unpackSize == 0 && !markerIsMandatory) in Decode()
485 if (unpackSizeDefined && unpackSize == 0) in Decode()
489 unpackSize--; in Decode()
497 if (unpackSizeDefined && unpackSize == 0) in Decode()
507 unpackSize--; in Decode()
546 if (unpackSizeDefined && unpackSize == 0) in Decode()
553 if (unpackSizeDefined && unpackSize < len) in Decode()
555 len = (unsigned)unpackSize; in Decode()
[all …]
/external/lzma/C/
DLzma2Dec.c114 p->unpackSize = 0; in Lzma2Dec_UpdateState()
117 p->unpackSize = (UInt32)(p->control & 0x1F) << 16; in Lzma2Dec_UpdateState()
121 p->unpackSize |= (UInt32)b << 8; in Lzma2Dec_UpdateState()
125 p->unpackSize |= (UInt32)b; in Lzma2Dec_UpdateState()
126 p->unpackSize++; in Lzma2Dec_UpdateState()
127 PRF(printf(" %8d", p->unpackSize)); in Lzma2Dec_UpdateState()
205 if (p->unpackSize <= destSizeCur) in Lzma2Dec_DecodeToDic()
207 destSizeCur = (SizeT)p->unpackSize; in Lzma2Dec_DecodeToDic()
240 p->unpackSize -= (UInt32)srcSizeCur; in Lzma2Dec_DecodeToDic()
241 p->state = (p->unpackSize == 0) ? LZMA2_STATE_CONTROL : LZMA2_STATE_DATA_CONT; in Lzma2Dec_DecodeToDic()
[all …]
DLzma2Enc.c67 Byte *dest, size_t *destLen, UInt32 desiredPackSize, UInt32 *unpackSize);
79 UInt32 unpackSize = LZMA2_UNPACK_SIZE_MAX; in Lzma2EncInt_EncodeSubblock() local
91 outBuf + lzHeaderSize, &packSize, LZMA2_PACK_SIZE_MAX, &unpackSize); in Lzma2EncInt_EncodeSubblock()
93 PRF(printf("\npackSize = %7d unpackSize = %7d ", packSize, unpackSize)); in Lzma2EncInt_EncodeSubblock()
95 if (unpackSize == 0) in Lzma2EncInt_EncodeSubblock()
99 useCopyBlock = (packSize + 2 >= unpackSize || packSize > (1 << 16)); in Lzma2EncInt_EncodeSubblock()
112 while (unpackSize > 0) in Lzma2EncInt_EncodeSubblock()
114 UInt32 u = (unpackSize < LZMA2_COPY_CHUNK_SIZE) ? unpackSize : LZMA2_COPY_CHUNK_SIZE; in Lzma2EncInt_EncodeSubblock()
120 memcpy(outBuf + destPos, LzmaEnc_GetCurBuf(p->enc) - unpackSize, u); in Lzma2EncInt_EncodeSubblock()
121 unpackSize -= u; in Lzma2EncInt_EncodeSubblock()
[all …]
DLzma86Dec.c13 SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize) in Lzma86_GetUnpackSize() argument
18 *unpackSize = 0; in Lzma86_GetUnpackSize()
20 *unpackSize += ((UInt64)src[LZMA86_SIZE_OFFSET + i]) << (8 * i); in Lzma86_GetUnpackSize()
DXzEnc.c66 if (XzBlock_HasUnpackSize(p)) pos += Xz_WriteVarInt(header + pos, p->unpackSize); in XzBlock_WriteHeader()
99 pos += Xz_WriteVarInt(buf + pos, block->unpackSize); in Xz_WriteFooter()
128 SRes Xz_AddIndexRecord(CXzStream *p, UInt64 unpackSize, UInt64 totalSize, ISzAlloc *alloc) in Xz_AddIndexRecord() argument
151 block->unpackSize = unpackSize; in Xz_AddIndexRecord()
479 block.unpackSize = checkInStream.processed; in Xz_Compress()
490 … RINOK(Xz_AddIndexRecord(xz, block.unpackSize, seqSizeOutStream.processed - padSize, &g_Alloc)); in Xz_Compress()
D7zDec.c358 UInt64 unpackSize = unpackSizes[ci]; in SzFolder_Decode2() local
363 outSizeCur = (SizeT)unpackSize; in SzFolder_Decode2()
364 if (outSizeCur != unpackSize) in SzFolder_Decode2()
374 if (unpackSize > outSize) /* check it */ in SzFolder_Decode2()
376 tempBuf3 = outBufCur = outBuffer + (outSize - (size_t)unpackSize); in SzFolder_Decode2()
377 tempSize3 = outSizeCur = (SizeT)unpackSize; in SzFolder_Decode2()
DXz.h45 UInt64 unpackSize; member
101 UInt64 unpackSize; member
205 UInt64 unpackSize; member
D7zArcIn.c1033 UInt64 unpackSize = 0; in SzReadAndDecodePackedStreams() local
1041 unpackSize = curSize; in SzReadAndDecodePackedStreams()
1047 if ((size_t)unpackSize != unpackSize) in SzReadAndDecodePackedStreams()
1049 if (!Buf_Create(tempBuf, (size_t)unpackSize, allocTemp)) in SzReadAndDecodePackedStreams()
1730 size_t unpackSize = (size_t)unpackSizeSpec; in SzArEx_Extract() local
1732 if (unpackSize != unpackSizeSpec) in SzArEx_Extract()
1742 *outBufferSize = unpackSize; in SzArEx_Extract()
1743 if (unpackSize != 0) in SzArEx_Extract()
1745 *tempBuf = (Byte *)IAlloc_Alloc(allocMain, unpackSize); in SzArEx_Extract()
1754 *tempBuf, unpackSize, allocTemp); in SzArEx_Extract()
[all …]
DLzma86.h87 SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize);
DLzma2Dec.h17 UInt32 unpackSize; member
DXzIn.c53 ADD_SIZE_CHECH(size, p->blocks[i].unpackSize); in Xz_GetUnpackSize()
106 READ_VARINT_AND_CHECK(buf, pos, size, &block->unpackSize); in Xz_ReadIndex2()
DXzDec.c542 READ_VARINT_AND_CHECK(header, pos, headerSize, &p->unpackSize); in XzBlock_Parse()
658 p->unpackSize += destLen2; in XzUnpacker_Code()
666 num += Xz_WriteVarInt(temp + num, p->unpackSize); in XzUnpacker_Code()
745 p->unpackSize = 0; in XzUnpacker_Code()
DLzmaEnc.c2132 Byte *dest, size_t *destLen, UInt32 desiredPackSize, UInt32 *unpackSize) in LzmaEnc_CodeOneMemBlock() argument
2155 res = LzmaEnc_CodeOneBlock(p, True, desiredPackSize, *unpackSize); in LzmaEnc_CodeOneMemBlock()
2157 *unpackSize = (UInt32)(p->nowPos64 - nowPos64); in LzmaEnc_CodeOneMemBlock()
/external/lzma/CPP/7zip/Archive/
DLzmaHandler.cpp312 UInt64 unpackSize = GetUi64(p + 1 + 4); in IsArc_Lzma() local
313 if (unpackSize != (UInt64)(Int64)-1) in IsArc_Lzma()
318 if (unpackSize != 0) in IsArc_Lzma()
324 if (unpackSize != (UInt64)(Int64)-1) in IsArc_Lzma()
477 UInt64 unpackSize = 0; in Extract() local
485 lps->OutSize = unpackSize; in Extract()
512 unpackSize = outStreamSpec->GetSize(); in Extract()
538 _unpackSize = unpackSize; in Extract()
/external/lzma/CPP/7zip/Archive/7z/
D7zExtract.cpp118 UInt64 unpackSize = db.GetFolderUnpackSize(folderIndex); in Extract() local
119 importantTotalUnpacked += unpackSize; in Extract()
120 extractFolderInfoVector.Back().UnpackSize = unpackSize; in Extract()
D7zEncode.h49 UInt64 &unpackSize,
D7zEncode.cpp147 UInt64 &unpackSize, in Encode() argument
276 unpackSize = 0; in Encode()
285 unpackSize = streamSize; in Encode()
D7zIn.cpp1120 size_t unpackSize = (size_t)unpackSize64; in ReadAndDecodePackedStreams() local
1121 if (unpackSize != unpackSize64) in ReadAndDecodePackedStreams()
1123 data.Alloc(unpackSize); in ReadAndDecodePackedStreams()
1127 outStreamSpec->Init(data, unpackSize); in ReadAndDecodePackedStreams()
1142 if (CrcCalc(data, unpackSize) != folders.FolderCRCs.Vals[i]) in ReadAndDecodePackedStreams()
D7zOut.cpp521 UInt64 unpackSize; in EncodeStream() local
524 …stream, NULL, &dataSize64, folders.AddNew(), outFolders.CoderUnpackSizes, unpackSize, SeqStream, p… in EncodeStream()
/external/lzma/DOC/
Dlzma-specification.txt861 unpackSize contains any value
871 unpackSize contains unpack size
879 unpackSize contains unpack size
901 The reference implementation of LZMA decoder uses "unpackSize" variable
903 "unpackSize" value after each decoded LITERAL or MATCH.
908 if (unpackSizeDefined && unpackSize == 0 && !markerIsMandatory)
996 if (unpackSizeDefined && unpackSize == 0)
1003 Then the decoder must update the "state" value and "unpackSize" value;
1006 unpackSize--;
1049 if (unpackSizeDefined && unpackSize == 0)
[all …]
/external/lzma/CPP/7zip/UI/FileManager/
DProgressDialog2.cpp823 const UInt64 unpackSize = CompressingMode ? inSize : outSize; in UpdateStatInfo() local
825 if (IS_UNDEFINED_VAL(unpackSize) && in UpdateStatInfo()
833 ShowSize(IDT_PROGRESS_PROCESSED_VAL, unpackSize, _processed_Prev); in UpdateStatInfo()
837 IS_DEFINED_VAL(unpackSize) && in UpdateStatInfo()
838 unpackSize != 0) in UpdateStatInfo()
841 UInt64 ratio = packSize * 100 / unpackSize; in UpdateStatInfo()
/external/lzma/CPP/7zip/UI/Common/
DBench.cpp550 UInt64 GeComprCommands(UInt64 unpackSize) in GeComprCommands()
552 return unpackSize * EncComplex; in GeComprCommands()
555 UInt64 GeDecomprCommands(UInt64 packSize, UInt64 unpackSize) in GeDecomprCommands()
557 return (packSize * DecComplexCompr + unpackSize * DecComplexUnc); in GeDecomprCommands()
1758 …UInt32 numThreads, bool forceUnpackSize, UInt32 unpackSize, IBenchPrintCallback *printCallback, CB… in TotalBench() argument
1772 UInt32 unpackSize2 = unpackSize; in TotalBench()
DOpenArchive.cpp411 UInt64 unpackSize = item.Size; in Extract() local
412 totalSize += unpackSize; in Extract()
420 outStreamSpec->Init(skipMode ? 0 : unpackSize, true); in Extract()
424 streamSpec->Init(unpackSize); in Extract()