/external/lzma/C/ |
D | 7zIn.c | 330 RINOK(SzReadByte(sd, data + i)); in SzReadBytes() 342 RINOK(SzReadByte(sd, &b)); in SzReadUInt32() 353 RINOK(SzReadByte(sd, &firstByte)); in SzReadNumber() 364 RINOK(SzReadByte(sd, &b)); in SzReadNumber() 374 RINOK(SzReadNumber(sd, &value64)); in SzReadNumber32() 400 RINOK(SzReadNumber(sd, &size)); in SzSkeepData() 409 RINOK(SzReadID(sd, &type)); in SzReadArchiveProperties() 422 RINOK(SzReadID(sd, &type)); in SzWaitAttribute() 427 RINOK(SzSkeepData(sd)); in SzWaitAttribute() 441 RINOK(SzReadByte(sd, &b)); in SzReadBoolVector() [all …]
|
D | XzIn.c | 13 RINOK(SeqInStream_Read2(inStream, sig, XZ_STREAM_HEADER_SIZE, SZ_ERROR_NO_ARCHIVE)); in Xz_ReadHeader() 28 RINOK(SeqInStream_ReadByte(inStream, &header[0])); in XzBlock_ReadHeader() 39 RINOK(SeqInStream_Read(inStream, header + 1, headerSize - 1)); in XzBlock_ReadHeader() 149 RINOK(SeekFromCur(stream, startOffset)); in Xz_ReadBackward() 151 RINOK(LookInStream_Read2(stream, buf, XZ_STREAM_FOOTER_SIZE, SZ_ERROR_NO_ARCHIVE)); in Xz_ReadBackward() 168 RINOK(SeekFromCur(stream, startOffset)); in Xz_ReadBackward() 169 RINOK(LookInStream_Read2(stream, tempBuf, processedSize, SZ_ERROR_NO_ARCHIVE)); in Xz_ReadBackward() 181 RINOK(stream->Seek(stream, startOffset, SZ_SEEK_SET)); in Xz_ReadBackward() 182 RINOK(LookInStream_Read2(stream, buf, XZ_STREAM_FOOTER_SIZE, SZ_ERROR_NO_ARCHIVE)); in Xz_ReadBackward() 201 RINOK(SeekFromCur(stream, startOffset)); in Xz_ReadBackward() [all …]
|
D | 7zDec.c | 134 RINOK(LzmaDec_AllocateProbs(&state, coder->Props.data, (unsigned)coder->Props.size, allocMain)); in SzDecodeLzma() 184 RINOK(Lzma2Dec_AllocateProbs(&state, coder->Props.data[0], allocMain)); in SzDecodeLzma2() 232 RINOK(inStream->Look((void *)inStream, (const void **)&inBuf, &curSize)); in SzDecodeCopy() 238 RINOK(inStream->Skip((void *)inStream, curSize)); in SzDecodeCopy() 345 RINOK(CheckSupportedFolder(folder)); in SzFolder_Decode2() 387 RINOK(LookInStream_SeekTo(inStream, startPos + offset)); in SzFolder_Decode2() 393 RINOK(SzDecodeCopy(inSize, inStream, outBufCur)); in SzFolder_Decode2() 397 RINOK(SzDecodeLzma(coder, inSize, inStream, outBufCur, outSizeCur, allocMain)); in SzFolder_Decode2() 401 RINOK(SzDecodeLzma2(coder, inSize, inStream, outBufCur, outSizeCur, allocMain)); in SzFolder_Decode2() 406 RINOK(SzDecodePpmd(coder, inSize, inStream, outBufCur, outSizeCur, allocMain)); in SzFolder_Decode2() [all …]
|
D | XzEnc.c | 90 RINOK(WriteBytesAndCrc(s, buf, pos, &crc)); in Xz_WriteFooter() 97 RINOK(WriteBytesAndCrc(s, buf, pos, &crc)); in Xz_WriteFooter() 103 RINOK(WriteBytesAndCrc(s, buf, 4 - pos, &crc)); in Xz_WriteFooter() 108 RINOK(WriteBytes(s, buf, 4)); in Xz_WriteFooter() 399 RINOK(Lzma2Enc_SetProps(lzmaf->lzma2, lzma2Props)); in Xz_Compress() 400 RINOK(Xz_WriteHeader(xz->flags, outStream)); in Xz_Compress() 429 RINOK(XzBlock_WriteHeader(&block, &seqSizeOutStream.p)); in Xz_Compress() 451 RINOK(res); in Xz_Compress() 462 RINOK(WriteBytes(&seqSizeOutStream.p, buf, padSize + XzFlags_GetCheckSize(xz->flags))); in Xz_Compress() 463 … RINOK(Xz_AddIndexRecord(xz, block.unpackSize, seqSizeOutStream.processed - padSize, &g_Alloc)); in Xz_Compress()
|
/external/chromium_org/third_party/lzma_sdk/ |
D | 7zIn.c | 330 RINOK(SzReadByte(sd, data + i)); in SzReadBytes() 342 RINOK(SzReadByte(sd, &b)); in SzReadUInt32() 353 RINOK(SzReadByte(sd, &firstByte)); in SzReadNumber() 364 RINOK(SzReadByte(sd, &b)); in SzReadNumber() 374 RINOK(SzReadNumber(sd, &value64)); in SzReadNumber32() 400 RINOK(SzReadNumber(sd, &size)); in SzSkeepData() 409 RINOK(SzReadID(sd, &type)); in SzReadArchiveProperties() 422 RINOK(SzReadID(sd, &type)); in SzWaitAttribute() 427 RINOK(SzSkeepData(sd)); in SzWaitAttribute() 441 RINOK(SzReadByte(sd, &b)); in SzReadBoolVector() [all …]
|
D | 7zDec.c | 134 RINOK(LzmaDec_AllocateProbs(&state, coder->Props.data, (unsigned)coder->Props.size, allocMain)); in SzDecodeLzma() 184 RINOK(Lzma2Dec_AllocateProbs(&state, coder->Props.data[0], allocMain)); in SzDecodeLzma2() 232 RINOK(inStream->Look((void *)inStream, (const void **)&inBuf, &curSize)); in SzDecodeCopy() 238 RINOK(inStream->Skip((void *)inStream, curSize)); in SzDecodeCopy() 345 RINOK(CheckSupportedFolder(folder)); in SzFolder_Decode2() 387 RINOK(LookInStream_SeekTo(inStream, startPos + offset)); in SzFolder_Decode2() 393 RINOK(SzDecodeCopy(inSize, inStream, outBufCur)); in SzFolder_Decode2() 397 RINOK(SzDecodeLzma(coder, inSize, inStream, outBufCur, outSizeCur, allocMain)); in SzFolder_Decode2() 401 RINOK(SzDecodeLzma2(coder, inSize, inStream, outBufCur, outSizeCur, allocMain)); in SzFolder_Decode2() 406 RINOK(SzDecodePpmd(coder, inSize, inStream, outBufCur, outSizeCur, allocMain)); in SzFolder_Decode2() [all …]
|
/external/lzma/CPP/7zip/Archive/7z/ |
D | 7zFolderOutStream.cpp | 45 RINOK(_extractCallback->GetStream(_ref2Offset + index, &realOutStream, askMode)); in OpenFile() 78 RINOK(OpenFile()); in ProcessEmptyFiles() 79 RINOK(CloseFileAndSetResult()); in ProcessEmptyFiles() 93 RINOK(_crcStream->Write(data, cur, &cur)); in Write() 103 RINOK(CloseFileAndSetResult()); in Write() 104 RINOK(ProcessEmptyFiles()); in Write() 110 RINOK(ProcessEmptyFiles()); in Write() 118 RINOK(OpenFile()); in Write() 139 RINOK(CloseFileAndSetResult(resultEOperationResult)); in FlushCorrupted() 143 RINOK(OpenFile()); in FlushCorrupted()
|
D | 7zHandlerOut.cpp | 58 RINOK(res); in SetCompressionMethod() 98 RINOK(res); in SetCompressionMethod() 176 RINOK(updateCallback->GetProperty(index, propID, &prop)); in GetTime() 215 RINOK(updateCallback->GetUpdateItemInfo(i, &newData, &newProps, &indexInArchive)); in UpdateItems() 245 RINOK(updateCallback->GetProperty(i, kpidAttrib, &prop)); in UpdateItems() 258 RINOK(GetTime(updateCallback, i, WriteCTime, kpidCTime, ui.CTime, ui.CTimeDefined)); in UpdateItems() 259 RINOK(GetTime(updateCallback, i, WriteATime, kpidATime, ui.ATime, ui.ATimeDefined)); in UpdateItems() 260 RINOK(GetTime(updateCallback, i, true, kpidMTime, ui.MTime, ui.MTimeDefined)); in UpdateItems() 264 RINOK(updateCallback->GetProperty(i, kpidPath, &prop)); in UpdateItems() 277 RINOK(updateCallback->GetProperty(i, kpidIsDir, &prop)); in UpdateItems() [all …]
|
D | 7zFolderInStream.cpp | 49 RINOK(streamGetSize->GetSize(&_currentSize)); in OpenStream() 54 RINOK(_updateCallback->SetOperationResult(NArchive::NUpdate::NOperationResult::kOK)); in OpenStream() 69 RINOK(_updateCallback->SetOperationResult(NArchive::NUpdate::NOperationResult::kOK)); in CloseStream() 88 RINOK(_inStreamWithHash->Read(data, size, &processed2)); in Read() 91 RINOK(CloseStream()); in Read() 101 RINOK(OpenStream()); in Read()
|
D | 7zExtract.cpp | 140 RINOK(extractCallback->SetTotal(importantTotalUnpacked)); in Extract() 163 RINOK(lps->SetCur()); in Extract() 197 RINOK(result); in Extract() 244 RINOK(folderOutStream->FlushCorrupted(NExtract::NOperationResult::kDataError)); in Extract() 249 RINOK(folderOutStream->FlushCorrupted(NExtract::NOperationResult::kUnSupportedMethod)); in Extract() 256 RINOK(folderOutStream->FlushCorrupted(NExtract::NOperationResult::kDataError)); in Extract() 262 RINOK(folderOutStream->FlushCorrupted(NExtract::NOperationResult::kDataError)); in Extract()
|
/external/lzma/CPP/7zip/UI/Common/ |
D | ArchiveExtractCallback.cpp | 126 RINOK(_arc->Archive->GetProperty(index, propID, &prop)); in GetTime() 140 RINOK(_arc->Archive->GetProperty(_index, kpidSize, &prop)); in GetUnpackSize() 163 RINOK(_arc->GetItemPath(index, fullPath)); in GetStream() 164 RINOK(IsArchiveItemFolder(archive, index, _fi.IsDir)); in GetStream() 170 RINOK(archive->GetProperty(index, kpidPosition, &prop)); in GetStream() 180 RINOK(GetArchiveItemBoolProp(archive, index, kpidEncrypted, _encrypted)); in GetStream() 182 RINOK(GetUnpackSize()); in GetStream() 201 RINOK(archive->GetProperty(index, kpidAttrib, &prop)); in GetStream() 213 RINOK(GetTime(index, kpidCTime, _fi.CTime, _fi.CTimeDefined)); in GetStream() 214 RINOK(GetTime(index, kpidATime, _fi.ATime, _fi.ATimeDefined)); in GetStream() [all …]
|
D | Update.cpp | 154 RINOK(subStream.Stream->Seek(_offsetPos, STREAM_SEEK_SET, NULL)); in Write() 160 RINOK(subStream.Stream->Write(data, curSize, &realProcessed)); in Write() 217 RINOK(subStream.Stream->SetSize(newSize)); in SetSize() 330 RINOK(codecs->CreateOutArchive(compressionMethod.FormatIndex, outArchive)); in Compress() 338 RINOK(setCompressCodecsInfo->SetCompressCodecsInfo(codecs)); in Compress() 348 RINOK(outArchive->GetFileTimeType(&value)); in Compress() 375 RINOK(callback->SetNumFiles(numFiles)); in Compress() 465 RINOK(SetProperties(outArchive, compressionMethod.Properties)); in Compress() 496 RINOK(NCompress::CopyStream(sfxStream, sfxOutStream, NULL)); in Compress() 499 RINOK(outStreamSpec->Close()); in Compress() [all …]
|
D | Extract.cpp | 34 RINOK(archive->GetNumberOfItems(&numItems)); in DecompressArchive() 39 RINOK(arc.GetItemPath(i, filePath)); in DecompressArchive() 41 RINOK(IsArchiveItemFolder(archive, i, isFolder)); in DecompressArchive() 83 RINOK(SetProperties(archive, options.Properties)); in DecompressArchive() 140 RINOK(extractCallback->SetTotal(totalPackSize)); in DecompressArchives() 161 RINOK(extractCallback->BeforeOpen(arcPath)); in DecompressArchives() 199 RINOK(extractCallback->OpenResult(arcPath, result, crypted)); in DecompressArchives() 219 RINOK(extractCallback->SetTotal(totalPackSize)); in DecompressArchives() 224 RINOK(openCallback->Open_GetPasswordIfAny(password)); in DecompressArchives() 227 RINOK(extractCallback->SetPassword(password)); in DecompressArchives() [all …]
|
D | OpenArchive.cpp | 25 RINOK(archive->GetProperty(index, propID, &prop)); in GetArchiveItemBoolProp() 42 RINOK(Archive->GetProperty(index, kpidPath, &prop)); in GetItemPath() 54 RINOK(Archive->GetProperty(index, kpidExtension, &prop)); in GetItemPath() 71 RINOK(Archive->GetProperty(index, kpidMTime, &prop)); in GetItemMTime() 150 RINOK(stream->Seek(0, STREAM_SEEK_SET, NULL)); in OpenStream() 152 RINOK(ReadStream(stream, byteBuffer, &processedSize)); in OpenStream() 219 RINOK(stream->Seek(0, STREAM_SEEK_SET, NULL)); in OpenStream() 221 RINOK(ReadStream(stream, buffer, &processedSize)); in OpenStream() 265 RINOK(stream->Seek(0, STREAM_SEEK_SET, NULL)); in OpenStream() 270 RINOK(codecs->CreateInArchive(FormatIndex, archive)); in OpenStream() [all …]
|
D | LoadCodecs.cpp | 100 RINOK(getMethodProperty(index, propId, &prop)); in GetCoderClass() 122 RINOK(getNumberOfMethodsFunc(&numMethods)); in LoadCodecs() 131 …RINOK(GetCoderClass(lib.GetMethodProperty, i, NMethodPropID::kEncoder, info.Encoder, info.EncoderI… in LoadCodecs() 132 …RINOK(GetCoderClass(lib.GetMethodProperty, i, NMethodPropID::kDecoder, info.Decoder, info.DecoderI… in LoadCodecs() 155 RINOK(ReadProp(getProp, getProp2, index, propID, prop)); in ReadBoolProp() 169 RINOK(ReadProp(getProp, getProp2, index, propID, prop)); in ReadStringProp() 252 RINOK(getNumberOfFormats(&numFormats)); in LoadFormats() 263 RINOK(ReadStringProp(getProp, getProp2, i, NArchive::kName, item.Name)); in LoadFormats() 274 RINOK(ReadStringProp(getProp, getProp2, i, NArchive::kExtension, ext)); in LoadFormats() 275 RINOK(ReadStringProp(getProp, getProp2, i, NArchive::kAddExtension, addExt)); in LoadFormats() [all …]
|
D | Bench.cpp | 594 RINOK(encoder.QueryInterface(IID_ICompressSetCoderProperties, &setCoderProperties)); in Init() 597 RINOK(setCoderProperties->SetCoderProperties(propIDs, props, kNumProps)); in Init() 603 RINOK(writeCoderProperties->WriteCoderProperties(propStream)); in Init() 616 RINOK(encoder->Code(inStream, outStream, 0, 0, progressInfo[0])); in Encode() 645 …RINOK(compressSetDecoderProperties->SetDecoderProperties2(propStreamSpec->Buffer, propStreamSpec->… in Decode() 647 RINOK(decoder->Code(inStream, crcOutStream, 0, &outSize, progressInfo[decoderIndex])); in Decode() 698 RINOK(CreateCoder(EXTERNAL_CODECS_LOC_VARS kLzmaId, encoder.encoder, true)); in LzmaBench() 703 RINOK(CreateCoder(EXTERNAL_CODECS_LOC_VARS kLzmaId, encoder.decoders[j], false)); in LzmaBench() 713 RINOK(encoders[i].Init(dictionarySize, numThreads, &rg)); in LzmaBench() 741 RINOK(encoder.CreateEncoderThread()) in LzmaBench() [all …]
|
/external/lzma/CPP/7zip/Common/ |
D | CreateCoder.cpp | 26 RINOK(codecsInfo->GetProperty(index, propID, &prop)); in ReadNumberOfStreams() 39 RINOK(codecsInfo->GetProperty(index, propID, &prop)); in ReadIsAssignedProp() 52 RINOK(codecsInfo->GetNumberOfMethods(&num)); in LoadExternalCodecs() 57 RINOK(codecsInfo->GetProperty(i, NMethodPropID::kID, &prop)); in LoadExternalCodecs() 69 RINOK(codecsInfo->GetProperty(i, NMethodPropID::kName, &prop)); in LoadExternalCodecs() 75 RINOK(ReadNumberOfStreams(codecsInfo, i, NMethodPropID::kInStreams, info.NumInStreams)); in LoadExternalCodecs() 76 RINOK(ReadNumberOfStreams(codecsInfo, i, NMethodPropID::kOutStreams, info.NumOutStreams)); in LoadExternalCodecs() 77 …RINOK(ReadIsAssignedProp(codecsInfo, i, NMethodPropID::kEncoderIsAssigned, info.EncoderIsAssigned)… in LoadExternalCodecs() 78 …RINOK(ReadIsAssignedProp(codecsInfo, i, NMethodPropID::kDecoderIsAssigned, info.DecoderIsAssigned)… in LoadExternalCodecs() 212 RINOK(codecsInfo->CreateEncoder(i, &IID_ICompressFilter, (void **)&filter)); in CreateCoder() [all …]
|
D | FilterCoder.cpp | 34 RINOK(WriteStream(outStream, _buffer, size)); in WriteWithLimit() 42 RINOK(Init()); in Code() 53 RINOK(ReadStream(inStream, _buffer + bufferPos, &processedSize)); in Code() 71 RINOK(WriteWithLimit(outStream, bufferPos)); in Code() 74 RINOK(progress->SetRatioInfo(&_nowPos64, &_nowPos64)); in Code() 123 RINOK(WriteWithLimit(_outStream, _bufferPos)); in Write() 145 RINOK(WriteWithLimit(_outStream, _bufferPos)); in Flush() 192 RINOK(ReadStream(_inStream, _buffer + _bufferPos, &processedSizeTemp)); in Read()
|
D | StreamUtils.cpp | 21 RINOK(res); in ReadStream() 31 RINOK(ReadStream(stream, data, &processedSize)); in ReadStream_FALSE() 38 RINOK(ReadStream(stream, data, &processedSize)); in ReadStream_FAIL() 51 RINOK(res); in WriteStream()
|
/external/lzma/CPP/7zip/Archive/ |
D | LzmaHandler.cpp | 106 RINOK(CreateCoder(EXTERNAL_CODECS_LOC_VARS k_BCJ, coder, false)); in Create() 134 RINOK(setDecoderProperties->SetDecoderProperties2(header.LzmaProps, 5)); in Code() 146 RINOK(setOutStream->SetOutStream(outStream)); in Code() 167 RINOK(res); in Code() 282 RINOK(inStream->Seek(0, STREAM_SEEK_CUR, &_startPosition)); in Open() 287 RINOK(ReadStream_FALSE(inStream, buf, kBufSize)); in Open() 296 RINOK(inStream->Seek(0, STREAM_SEEK_END, &endPos)); in Open() 338 RINOK(extractCallback->GetStream(0, &realOutStream, askMode)); in Extract() 356 RINOK(_stream->Seek(_startPosition, STREAM_SEEK_SET, NULL)); in Extract() 363 RINOK(result); in Extract() [all …]
|
D | XzHandler.cpp | 331 RINOK(inStream->Seek(0, STREAM_SEEK_END, &_packSize)); in Open2() 332 RINOK(callback->SetTotal(NULL, &_packSize)); in Open2() 345 RINOK(inStream->Seek(0, STREAM_SEEK_SET, NULL)); in Open2() 368 RINOK(inStream->Seek(0, STREAM_SEEK_SET, NULL)); in Open2() 382 RINOK(SResToHRESULT(res)); in Open2() 462 RINOK(extractCallback->SetCompleted(¤tTotalPacked)); in Extract() 468 RINOK(extractCallback->GetStream(0, &realOutStream, askMode)); in Extract() 477 RINOK(_stream->Seek(_startPosition, STREAM_SEEK_SET, NULL)); in Extract() 509 RINOK(_seqStream->Read(xzu.InBuf, kInBufSize, &inSize)); in Extract() 533 RINOK(WriteStream(realOutStream, xzu.OutBuf, outPos)); in Extract() [all …]
|
D | SplitHandler.cpp | 156 RINOK(openVolumeCallback->GetProperty(kpidName, &prop)); in Open() 217 RINOK(openVolumeCallback->GetProperty(kpidSize, &prop)); in Open() 228 RINOK(openArchiveCallback->SetCompleted(&numFiles, NULL)); in Open() 244 RINOK(openVolumeCallback->GetProperty(kpidSize, &prop)); in Open() 255 RINOK(openArchiveCallback->SetCompleted(&numFiles, NULL)); in Open() 307 RINOK(extractCallback->SetTotal(_totalSize)); in Extract() 312 RINOK(extractCallback->GetStream(0, &outStream, askMode)); in Extract() 315 RINOK(extractCallback->PrepareOperation(askMode)); in Extract() 327 RINOK(lps->SetCur()); in Extract() 329 RINOK(inStream->Seek(0, STREAM_SEEK_SET, NULL)); in Extract() [all …]
|
/external/lzma/CPP/7zip/Compress/ |
D | LzmaDecoder.cpp | 65 RINOK(SResToHRESULT(LzmaDec_Allocate(&_state, prop, size, &g_Alloc))); in SetDecoderProperties2() 101 RINOK(inStream->Read(_inBuf, _inBufSizeAllocated, &_inSize)); in CodeSpec() 145 RINOK(res2); in CodeSpec() 154 RINOK(progress->SetRatioInfo(&inSize, &_outSizeProcessed)); in CodeSpec() 182 RINOK(_inStream->Read(_inBuf, _inBufSizeAllocated, &_inSize)); in Read() 205 RINOK(SResToHRESULT(res)); in Read() 222 RINOK(CreateInputBuffer()); in ReadFromInputStream() 230 RINOK(_inStream->Read(_inBuf, _inBufSizeAllocated, &_inSize)); in ReadFromInputStream()
|
D | Lzma2Decoder.cpp | 47 RINOK(SResToHRESULT(Lzma2Dec_Allocate(&_state, prop[0], &g_Alloc))); in SetDecoderProperties2() 88 RINOK(inStream->Read(_inBuf, kInBufSize, &_inSize)); in Code() 128 RINOK(res2); in Code() 139 RINOK(progress->SetRatioInfo(&_inSizeProcessed, &_outSizeProcessed)); in Code() 155 RINOK(_inStream->Read(_inBuf, kInBufSize, &_inSize)); in Read() 178 RINOK(SResToHRESULT(res)); in Read()
|
D | CopyCoder.cpp | 39 RINOK(inStream->Read(_buffer, size, &size)); in Code() 44 RINOK(WriteStream(outStream, _buffer, size)); in Code() 49 RINOK(progress->SetRatioInfo(&TotalSize, &TotalSize)); in Code()
|