/external/lzma/C/Util/Lzma/ |
D | LzmaUtil.c | 56 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/C/ |
D | Lzma2Dec.c | 112 p->unpackSize = 0; in Lzma2Dec_UpdateState() 115 p->unpackSize = (UInt32)(p->control & 0x1F) << 16; in Lzma2Dec_UpdateState() 119 p->unpackSize |= (UInt32)b << 8; in Lzma2Dec_UpdateState() 123 p->unpackSize |= (UInt32)b; in Lzma2Dec_UpdateState() 124 p->unpackSize++; in Lzma2Dec_UpdateState() 125 PRF(printf(" %8d", p->unpackSize)); in Lzma2Dec_UpdateState() 203 if (p->unpackSize <= destSizeCur) in Lzma2Dec_DecodeToDic() 205 destSizeCur = (SizeT)p->unpackSize; in Lzma2Dec_DecodeToDic() 238 p->unpackSize -= (UInt32)srcSizeCur; in Lzma2Dec_DecodeToDic() 239 p->state = (p->unpackSize == 0) ? LZMA2_STATE_CONTROL : LZMA2_STATE_DATA_CONT; in Lzma2Dec_DecodeToDic() [all …]
|
D | Lzma2Enc.c | 65 Byte *dest, size_t *destLen, UInt32 desiredPackSize, UInt32 *unpackSize); 77 UInt32 unpackSize = LZMA2_UNPACK_SIZE_MAX; in Lzma2EncInt_EncodeSubblock() local 89 outBuf + lzHeaderSize, &packSize, LZMA2_PACK_SIZE_MAX, &unpackSize); in Lzma2EncInt_EncodeSubblock() 91 PRF(printf("\npackSize = %7d unpackSize = %7d ", packSize, unpackSize)); in Lzma2EncInt_EncodeSubblock() 93 if (unpackSize == 0) in Lzma2EncInt_EncodeSubblock() 97 useCopyBlock = (packSize + 2 >= unpackSize || packSize > (1 << 16)); in Lzma2EncInt_EncodeSubblock() 110 while (unpackSize > 0) in Lzma2EncInt_EncodeSubblock() 112 UInt32 u = (unpackSize < LZMA2_COPY_CHUNK_SIZE) ? unpackSize : LZMA2_COPY_CHUNK_SIZE; in Lzma2EncInt_EncodeSubblock() 118 memcpy(outBuf + destPos, LzmaEnc_GetCurBuf(p->enc) - unpackSize, u); in Lzma2EncInt_EncodeSubblock() 119 unpackSize -= u; in Lzma2EncInt_EncodeSubblock() [all …]
|
D | Lzma86Dec.c | 13 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()
|
D | XzEnc.c | 62 if (XzBlock_HasUnpackSize(p)) pos += Xz_WriteVarInt(header + pos, p->unpackSize); in XzBlock_WriteHeader() 95 pos += Xz_WriteVarInt(buf + pos, block->unpackSize); in Xz_WriteFooter() 124 SRes Xz_AddIndexRecord(CXzStream *p, UInt64 unpackSize, UInt64 totalSize, ISzAlloc *alloc) in Xz_AddIndexRecord() argument 147 block->unpackSize = unpackSize; in Xz_AddIndexRecord() 452 block.unpackSize = checkInStream.processed; in Xz_Compress() 463 … RINOK(Xz_AddIndexRecord(xz, block.unpackSize, seqSizeOutStream.processed - padSize, &g_Alloc)); in Xz_Compress()
|
D | 7zDec.c | 361 UInt64 unpackSize = folder->UnpackSizes[ci]; in SzFolder_Decode2() local 366 outSizeCur = (SizeT)unpackSize; in SzFolder_Decode2() 367 if (outSizeCur != unpackSize) in SzFolder_Decode2() 377 if (unpackSize > outSize) /* check it */ in SzFolder_Decode2() 379 tempBuf3 = outBufCur = outBuffer + (outSize - (size_t)unpackSize); in SzFolder_Decode2() 380 tempSize3 = outSizeCur = (SizeT)unpackSize; in SzFolder_Decode2()
|
D | Xz.h | 45 UInt64 unpackSize; member 101 UInt64 unpackSize; member 205 UInt64 unpackSize; member
|
D | 7zIn.c | 1162 UInt64 unpackSize; in SzReadAndDecodePackedStreams2() local 1174 unpackSize = SzFolder_GetUnpackSize(folder); in SzReadAndDecodePackedStreams2() 1178 if (!Buf_Create(outBuffer, (size_t)unpackSize, allocTemp)) in SzReadAndDecodePackedStreams2() 1183 outBuffer->data, (size_t)unpackSize, allocTemp); in SzReadAndDecodePackedStreams2() 1186 if (CrcCalc(outBuffer->data, (size_t)unpackSize) != folder->UnpackCRC) in SzReadAndDecodePackedStreams2() 1351 size_t unpackSize = (size_t)unpackSizeSpec; in SzArEx_Extract() local 1354 if (unpackSize != unpackSizeSpec) in SzArEx_Extract() 1364 *outBufferSize = unpackSize; in SzArEx_Extract() 1365 if (unpackSize != 0) in SzArEx_Extract() 1367 *outBuffer = (Byte *)IAlloc_Alloc(allocMain, unpackSize); in SzArEx_Extract() [all …]
|
D | Lzma86.h | 87 SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize);
|
D | Lzma2Dec.h | 19 UInt32 unpackSize; member
|
D | XzIn.c | 51 ADD_SIZE_CHECH(size, p->blocks[i].unpackSize); in Xz_GetUnpackSize() 105 READ_VARINT_AND_CHECK(buf, pos, size, &block->unpackSize); in Xz_ReadIndex2()
|
D | XzDec.c | 527 READ_VARINT_AND_CHECK(header, pos, headerSize, &p->unpackSize); in XzBlock_Parse() 636 p->unpackSize += destLen2; in XzUnpacker_Code() 644 num += Xz_WriteVarInt(temp + num, p->unpackSize); in XzUnpacker_Code() 721 p->unpackSize = 0; in XzUnpacker_Code()
|
D | LzmaEnc.c | 2121 Byte *dest, size_t *destLen, UInt32 desiredPackSize, UInt32 *unpackSize) in LzmaEnc_CodeOneMemBlock() argument 2144 res = LzmaEnc_CodeOneBlock(p, True, desiredPackSize, *unpackSize); in LzmaEnc_CodeOneMemBlock() 2146 *unpackSize = (UInt32)(p->nowPos64 - nowPos64); in LzmaEnc_CodeOneMemBlock()
|
/external/chromium_org/third_party/lzma_sdk/ |
D | Lzma2Dec.c | 112 p->unpackSize = 0; in Lzma2Dec_UpdateState() 115 p->unpackSize = (UInt32)(p->control & 0x1F) << 16; in Lzma2Dec_UpdateState() 119 p->unpackSize |= (UInt32)b << 8; in Lzma2Dec_UpdateState() 123 p->unpackSize |= (UInt32)b; in Lzma2Dec_UpdateState() 124 p->unpackSize++; in Lzma2Dec_UpdateState() 125 PRF(printf(" %8d", p->unpackSize)); in Lzma2Dec_UpdateState() 203 if (p->unpackSize <= destSizeCur) in Lzma2Dec_DecodeToDic() 205 destSizeCur = (SizeT)p->unpackSize; in Lzma2Dec_DecodeToDic() 238 p->unpackSize -= (UInt32)srcSizeCur; in Lzma2Dec_DecodeToDic() 239 p->state = (p->unpackSize == 0) ? LZMA2_STATE_CONTROL : LZMA2_STATE_DATA_CONT; in Lzma2Dec_DecodeToDic() [all …]
|
D | 7zDec.c | 361 UInt64 unpackSize = folder->UnpackSizes[ci]; in SzFolder_Decode2() local 366 outSizeCur = (SizeT)unpackSize; in SzFolder_Decode2() 367 if (outSizeCur != unpackSize) in SzFolder_Decode2() 377 if (unpackSize > outSize) /* check it */ in SzFolder_Decode2() 379 tempBuf3 = outBufCur = outBuffer + (outSize - (size_t)unpackSize); in SzFolder_Decode2() 380 tempSize3 = outSizeCur = (SizeT)unpackSize; in SzFolder_Decode2()
|
D | 7zIn.c | 1162 UInt64 unpackSize; in SzReadAndDecodePackedStreams2() local 1174 unpackSize = SzFolder_GetUnpackSize(folder); in SzReadAndDecodePackedStreams2() 1178 if (!Buf_Create(outBuffer, (size_t)unpackSize, allocTemp)) in SzReadAndDecodePackedStreams2() 1183 outBuffer->data, (size_t)unpackSize, allocTemp); in SzReadAndDecodePackedStreams2() 1186 if (CrcCalc(outBuffer->data, (size_t)unpackSize) != folder->UnpackCRC) in SzReadAndDecodePackedStreams2() 1351 size_t unpackSize = (size_t)unpackSizeSpec; in SzArEx_Extract() local 1354 if (unpackSize != unpackSizeSpec) in SzArEx_Extract() 1364 *outBufferSize = unpackSize; in SzArEx_Extract() 1365 if (unpackSize != 0) in SzArEx_Extract() 1367 *outBuffer = (Byte *)IAlloc_Alloc(allocMain, unpackSize); in SzArEx_Extract() [all …]
|
D | Lzma2Dec.h | 19 UInt32 unpackSize; member
|
D | LzmaEnc.c | 2121 Byte *dest, size_t *destLen, UInt32 desiredPackSize, UInt32 *unpackSize) in LzmaEnc_CodeOneMemBlock() argument 2144 res = LzmaEnc_CodeOneBlock(p, True, desiredPackSize, *unpackSize); in LzmaEnc_CodeOneMemBlock() 2146 *unpackSize = (UInt32)(p->nowPos64 - nowPos64); in LzmaEnc_CodeOneMemBlock()
|
/external/lzma/CPP/7zip/Archive/7z/ |
D | 7zExtract.cpp | 119 UInt64 unpackSize = folderInfo.GetUnpackSize(); in Extract() local 120 importantTotalUnpacked += unpackSize; in Extract() 121 extractFolderInfoVector.Back().UnpackSize = unpackSize; in Extract()
|
D | 7zIn.cpp | 828 size_t unpackSize = (size_t)unpackSize64; in ReadAndDecodePackedStreams() local 829 if (unpackSize != unpackSize64) in ReadAndDecodePackedStreams() 831 data.SetCapacity(unpackSize); in ReadAndDecodePackedStreams() 835 outStreamSpec->Init(data, unpackSize); in ReadAndDecodePackedStreams() 851 if (CrcCalc(data, unpackSize) != folder.UnpackCRC) in ReadAndDecodePackedStreams()
|
/external/lzma/CPP/7zip/UI/Console/ |
D | List.cpp | 592 UInt64 packSize, unpackSize; in ListArchives() local 593 if (!GetUInt64Value(archive, i, kpidSize, unpackSize)) in ListArchives() 594 unpackSize = 0; in ListArchives() 609 totalUnPackSize += unpackSize; in ListArchives()
|
/external/chromium_org/third_party/ots/third_party/lzma_sdk/ |
D | LzmaEnc.c | 2122 Byte *dest, size_t *destLen, UInt32 desiredPackSize, UInt32 *unpackSize) in LzmaEnc_CodeOneMemBlock() argument 2145 res = LzmaEnc_CodeOneBlock(p, True, desiredPackSize, *unpackSize); in LzmaEnc_CodeOneMemBlock() 2147 *unpackSize = (UInt32)(p->nowPos64 - nowPos64); in LzmaEnc_CodeOneMemBlock()
|