/external/lzma/C/ |
D | 7zArcIn.c | 304 RINOK(ReadNumber(sd, &value64)); in SzReadNumber32() 318 RINOK(ReadNumber(sd, &size)); in SkipData() 330 RINOK(ReadID(sd, &type)); in WaitId() 335 RINOK(SkipData(sd)); in WaitId() 373 RINOK(SzReadByte(sd, &allAreDefined)); in ReadBitVector() 419 RINOK(ReadBitVector(sd, numItems, &crcs->Defs, alloc)); in ReadBitUi32s() 427 RINOK(SzReadByte(sd, &allAreDefined)); in SkipBitUi32s() 444 RINOK(SzReadNumber32(sd, &p->NumPackStreams)); in ReadPackInfo() 446 RINOK(WaitId(sd, k7zIdSize)); in ReadPackInfo() 456 RINOK(ReadNumber(sd, &packSize)); in ReadPackInfo() [all …]
|
D | XzIn.c | 15 RINOK(SeqInStream_Read2(inStream, sig, XZ_STREAM_HEADER_SIZE, SZ_ERROR_NO_ARCHIVE)); in Xz_ReadHeader() 30 RINOK(SeqInStream_ReadByte(inStream, &header[0])); in XzBlock_ReadHeader() 41 RINOK(SeqInStream_Read(inStream, header + 1, headerSize - 1)); in XzBlock_ReadHeader() 150 RINOK(SeekFromCur(stream, startOffset)); in Xz_ReadBackward() 152 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, i, SZ_ERROR_NO_ARCHIVE)); in Xz_ReadBackward() 184 RINOK(stream->Seek(stream, startOffset, SZ_SEEK_SET)); in Xz_ReadBackward() 185 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 | XzEnc.c | 94 RINOK(WriteBytesAndCrc(s, buf, pos, &crc)); in Xz_WriteFooter() 101 RINOK(WriteBytesAndCrc(s, buf, pos, &crc)); in Xz_WriteFooter() 107 RINOK(WriteBytesAndCrc(s, buf, 4 - pos, &crc)); in Xz_WriteFooter() 112 RINOK(WriteBytes(s, buf, 4)); in Xz_WriteFooter() 231 RINOK(p->realStream->Read(p->realStream, p->buf, &p->endPos)); in SeqInFilter_Read() 276 RINOK(BraState_SetFromMethod(&p->StateCoder, props->id, 1, &g_Alloc)); in SeqInFilter_Init() 277 RINOK(p->StateCoder.SetProps(p->StateCoder.p, props->props, props->propsSize, &g_Alloc)); in SeqInFilter_Init() 304 RINOK(p->inStream->Read(p->inStream, p->enc.buf + p->enc.readPos, &processed)); in SbEncInStream_Read() 314 RINOK(SbEnc_Read(&p->enc, data, size)); in SbEncInStream_Read() 404 RINOK(Lzma2Enc_SetProps(lzmaf->lzma2, props->lzma2Props)); in Xz_Compress() [all …]
|
D | 7zDec.c | 136 RINOK(LzmaDec_AllocateProbs(&state, props, propsSize, allocMain)); in SzDecodeLzma() 186 RINOK(Lzma2Dec_AllocateProbs(&state, props[0], allocMain)); in SzDecodeLzma2() 234 RINOK(inStream->Look((void *)inStream, (const void **)&inBuf, &curSize)); in SzDecodeCopy() 240 RINOK(inStream->Skip((void *)inStream, curSize)); in SzDecodeCopy() 342 RINOK(CheckSupportedFolder(folder)); in SzFolder_Decode2() 384 RINOK(LookInStream_SeekTo(inStream, startPos + offset)); in SzFolder_Decode2() 390 RINOK(SzDecodeCopy(inSize, inStream, outBufCur)); in SzFolder_Decode2() 394 …RINOK(SzDecodeLzma(propsData + coder->PropsOffset, coder->PropsSize, inSize, inStream, outBufCur, … in SzFolder_Decode2() 398 …RINOK(SzDecodeLzma2(propsData + coder->PropsOffset, coder->PropsSize, inSize, inStream, outBufCur,… in SzFolder_Decode2() 403 …RINOK(SzDecodePpmd(propsData + coder->PropsOffset, coder->PropsSize, inSize, inStream, outBufCur, … 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 | 64 RINOK(PropsMethod_To_FullMethod(methodFull, m)); in SetHeaderMethod() 109 RINOK(PropsMethod_To_FullMethod(methodFull, oneMethodInfo)); in SetMainMethod() 148 RINOK(updateCallback->GetProperty(index, propID, &prop)); in GetTime() 286 RINOK(updateCallback->GetUpdateItemInfo(i, &newData, &newProps, &indexInArchive)); in UpdateItems() 324 RINOK(updateCallback->GetProperty(i, kpidAttrib, &prop)); in UpdateItems() 337 if (need_CTime) RINOK(GetTime(updateCallback, i, kpidCTime, ui.CTime, ui.CTimeDefined)); in UpdateItems() 338 if (need_ATime) RINOK(GetTime(updateCallback, i, kpidATime, ui.ATime, ui.ATimeDefined)); in UpdateItems() 339 if (need_MTime) RINOK(GetTime(updateCallback, i, kpidMTime, ui.MTime, ui.MTimeDefined)); in UpdateItems() 357 RINOK(updateCallback->GetProperty(i, kpidPath, &prop)); in UpdateItems() 370 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 | 139 RINOK(extractCallback->SetTotal(importantTotalUnpacked)); in Extract() 162 RINOK(lps->SetCur()); in Extract() 196 RINOK(result); in Extract() 236 RINOK(folderOutStream->FlushCorrupted(NExtract::NOperationResult::kDataError)); in Extract() 241 RINOK(folderOutStream->FlushCorrupted(NExtract::NOperationResult::kUnsupportedMethod)); in Extract() 248 RINOK(folderOutStream->FlushCorrupted(NExtract::NOperationResult::kDataError)); in Extract() 254 RINOK(folderOutStream->FlushCorrupted(NExtract::NOperationResult::kDataError)); in Extract()
|
/external/lzma/CPP/7zip/UI/Common/ |
D | OpenArchive.cpp | 402 RINOK(lps->SetCur()); in Extract() 410 RINOK(extractCallback->GetStream(index, &realOutStream, askMode)); in Extract() 416 RINOK(extractCallback->PrepareOperation(askMode)); in Extract() 423 RINOK(_stream->Seek(item.Offset, STREAM_SEEK_SET, NULL)); in Extract() 425 RINOK(copyCoder->Code(inStream, outStream, NULL, NULL, progress)); in Extract() 430 RINOK(extractCallback->SetOperationResult(opRes)); in Extract() 453 RINOK(arc->GetProperty(index, propID, &prop)); in Archive_GetItemBoolProp() 485 RINOK(arc->GetArchiveProperty(propid, &prop)); in Archive_GetArcBoolProp() 497 RINOK(arc->GetArchiveProperty(propid, &prop)); in Archive_GetArcProp_UInt() 514 RINOK(arc->GetArchiveProperty(propid, &prop)); in Archive_GetArcProp_Int() [all …]
|
D | ArchiveExtractCallback.cpp | 94 RINOK(archive->GetProperty(index, kpidINode, &prop)); in Archive_Get_HardLinkNode() 100 RINOK(archive->GetProperty(index, kpidStreamId, &prop)); in Archive_Get_HardLinkNode() 124 RINOK(archive->GetNumberOfItems(&numItems)); in PrepareHardLinks() 131 RINOK(Archive_Get_HardLinkNode(archive, realIndices ? (*realIndices)[i] : i, h, defined)); in PrepareHardLinks() 336 RINOK(_arc->Archive->GetProperty(index, propID, &prop)); in GetTime() 450 RINOK(_arc->GetItemPath(index, fullPath)); in GetStream() 451 RINOK(Archive_IsItem_Folder(archive, index, _fi.IsDir)); in GetStream() 457 RINOK(archive->GetProperty(index, kpidPosition, &prop)); in GetStream() 478 RINOK(archive->GetProperty(index, kpidHardLink, &prop)); in GetStream() 494 RINOK(archive->GetProperty(index, kpidSymLink, &prop)); in GetStream() [all …]
|
D | HashCalc.cpp | 58 RINOK(m.ParseMethodFromString(names[i])); in SetMethods() 93 RINOK(CreateHasher(EXTERNAL_CODECS_LOC_VARS ids[i], name, hasher)); in SetMethods() 102 RINOK(m.SetCoderProps(scp, NULL)); in SetMethods() 227 RINOK(callback->StartScanning()); in HashCalc() 236 RINOK(callback->CanNotFindError(fs2us(dirItems.ErrorPaths[i]), dirItems.ErrorCodes[i])); in HashCalc() 245 RINOK(callback->FinishScanning()); in HashCalc() 250 RINOK(hb.SetMethods(EXTERNAL_CODECS_LOC_VARS options.Methods)); in HashCalc() 256 RINOK(callback->SetNumFiles(1)); in HashCalc() 260 RINOK(callback->SetTotal(totalBytes)); in HashCalc() 270 RINOK(callback->BeforeFirstFile(hb)); in HashCalc() [all …]
|
D | Extract.cpp | 79 RINOK(archive->GetNumberOfItems(&numItems)); in DecompressArchive() 85 RINOK(arc.GetItemPath(i, filePath)); in DecompressArchive() 100 RINOK(Archive_IsItem_Folder(archive, i, isFolder)); in DecompressArchive() 102 RINOK(Archive_IsItem_AltStream(archive, i, isAltStream)); in DecompressArchive() 155 RINOK(ecs->PrepareHardLinks(&realIndices)); in DecompressArchive() 251 RINOK(extractCallback->SetTotal(totalPackSize)); in Extract() 279 RINOK(extractCallback->BeforeOpen(arcPath)); in Extract() 335 RINOK(extractCallback->OpenResult(arcPath, result, crypted)); in Extract() 345 RINOK(extractCallback->SetError(r, arc.Path, in Extract() 393 RINOK(extractCallback->SetTotal(totalPackSize)); in Extract() [all …]
|
D | Bench.cpp | 784 RINOK(method.SetCoderProps(scp, &reduceSize)); in Init() 796 RINOK(writeCoderProps->WriteCoderProperties(propStream)); in Init() 804 RINOK(sp->CryptoSetPassword(_psw, sizeof(_psw))); in Init() 825 RINOK(_encoder->Code(inStream, outStream, 0, 0, NULL)); in Init() 854 RINOK(cp->SetKey(_key, sizeof(_key))); in Encode() 855 RINOK(cp->SetInitVector(_iv, sizeof(_iv))); in Encode() 862 RINOK(printCallback->CheckBreak()); in Encode() 875 RINOK(WriteStream(outStream, rgCopy.Buffer, rg.BufferSize)); in Encode() 880 RINOK(_encoder->Code(inStream, outStream, 0, 0, progressInfo[0])); in Encode() 930 RINOK(setCoderMt->SetNumberOfThreads(NumDecoderSubThreads)); in Decode() [all …]
|
D | LoadCodecs.cpp | 190 RINOK(getMethodProperty(index, propId, &prop)); in GetCoderClass() 213 RINOK(getNumberOfMethodsFunc(&numMethods)); in LoadCodecs() 220 …RINOK(GetCoderClass(lib.GetMethodProperty, i, NMethodPropID::kEncoder, info.Encoder, info.EncoderI… in LoadCodecs() 221 …RINOK(GetCoderClass(lib.GetMethodProperty, i, NMethodPropID::kDecoder, info.Decoder, info.DecoderI… in LoadCodecs() 229 RINOK(getHashers(&lib.Hashers)); in LoadCodecs() 262 RINOK(GetProp(getProp, getProp2, index, propID, prop)); in GetProp_Bool() 278 RINOK(GetProp(getProp, getProp2, index, propID, prop)); in GetProp_UInt32() 296 RINOK(GetProp(getProp, getProp2, index, propID, prop)); in GetProp_String() 311 RINOK(GetProp(getProp, getProp2, index, propID, prop)); in GetProp_RawData() 344 RINOK(getNumberOfFormats(&numFormats)); in LoadFormats() [all …]
|
D | Update.cpp | 190 RINOK(altStream.Stream->Seek(_offsetPos, STREAM_SEEK_SET, NULL)); in Write() 196 RINOK(altStream.Stream->Write(data, curSize, &realProcessed)); in Write() 247 RINOK(altStream.Stream->SetSize(newSize)); in SetSize() 500 RINOK(codecs->CreateOutArchive(formatIndex, outArchive)); in Compress() 508 RINOK(setCompressCodecsInfo->SetCompressCodecsInfo(codecs)); in Compress() 518 RINOK(outArchive->GetFileTimeType(&value)); in Compress() 587 RINOK(arc->IsItemAnti(i, up2.IsAnti)); in Compress() 606 RINOK(callback->SetNumFiles(numFiles)); in Compress() 720 RINOK(SetProperties(outArchive, options.MethodMode.Properties)); in Compress() 751 RINOK(NCompress::CopyStream(sfxStream, sfxOutStream, NULL)); in Compress() [all …]
|
/external/lzma/CPP/7zip/Common/ |
D | CreateCoder.cpp | 35 RINOK(codecsInfo->GetProperty(index, propID, &prop)); in ReadNumberOfStreams() 48 RINOK(codecsInfo->GetProperty(index, propID, &prop)); in ReadIsAssignedProp() 63 RINOK(GetCodecs->GetNumberOfMethods(&num)); in LoadCodecs() 68 RINOK(GetCodecs->GetProperty(i, NMethodPropID::kID, &prop)); in LoadCodecs() 77 RINOK(GetCodecs->GetProperty(i, NMethodPropID::kName, &prop)); in LoadCodecs() 83 RINOK(ReadNumberOfStreams(GetCodecs, i, NMethodPropID::kInStreams, info.NumInStreams)); in LoadCodecs() 84 RINOK(ReadNumberOfStreams(GetCodecs, i, NMethodPropID::kOutStreams, info.NumOutStreams)); in LoadCodecs() 85 …RINOK(ReadIsAssignedProp(GetCodecs, i, NMethodPropID::kEncoderIsAssigned, info.EncoderIsAssigned)); in LoadCodecs() 86 …RINOK(ReadIsAssignedProp(GetCodecs, i, NMethodPropID::kDecoderIsAssigned, info.DecoderIsAssigned)); in LoadCodecs() 98 RINOK(GetHashers->GetHasherProp(i, NMethodPropID::kID, &prop)); in LoadCodecs() [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() 198 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 | SplitHandler.cpp | 153 RINOK(volumeCallback->GetProperty(kpidName, &prop)); in Open2() 206 RINOK(volumeCallback->GetProperty(kpidSize, &prop)); in Open2() 218 RINOK(callback->SetCompleted(&numFiles, NULL)); in Open2() 234 RINOK(volumeCallback->GetProperty(kpidSize, &prop)); in Open2() 244 RINOK(callback->SetCompleted(&numFiles, NULL)); in Open2() 306 RINOK(extractCallback->SetTotal(_totalSize)); in Extract() 311 RINOK(extractCallback->GetStream(0, &outStream, askMode)); in Extract() 314 RINOK(extractCallback->PrepareOperation(askMode)); in Extract() 326 RINOK(lps->SetCur()); in Extract() 328 RINOK(inStream->Seek(0, STREAM_SEEK_SET, NULL)); in Extract() [all …]
|
D | XzHandler.cpp | 153 RINOK(progress.Decode(seqInStream, outStream)); in Decode2() 490 RINOK(inStream->Seek(0, STREAM_SEEK_END, &_stat.PhySize)); in Open2() 491 RINOK(callback->SetTotal(NULL, &_stat.PhySize)); in Open2() 530 RINOK(SRes_to_Open_HRESULT(res)); in Open2() 631 RINOK(seqInStream->Read(xzu.InBuf, kInBufSize, &inSize)); in Decode() 659 RINOK(WriteStream(outStream, xzu.OutBuf, outPos)); in Decode() 667 RINOK(Progress()); in Decode() 744 RINOK(extractCallback->SetCompleted(¤tTotalPacked)); in Extract() 750 RINOK(extractCallback->GetStream(0, &realOutStream, askMode)); in Extract() 767 RINOK(_stream->Seek(0, STREAM_SEEK_SET, NULL)); in Extract() [all …]
|
/external/lzma/CPP/7zip/Crypto/ |
D | 7zAes.cpp | 150 RINOK(outStream->Write(&firstByte, 1, NULL)); in WriteCoderProperties() 156 RINOK(outStream->Write(&secondByte, 1, NULL)); in WriteCoderProperties() 159 RINOK(WriteStream(outStream, _key.Salt, _key.SaltSize)); in WriteCoderProperties() 163 RINOK(WriteStream(outStream, _iv, ivSize)); in WriteCoderProperties() 220 RINOK(CreateFilter()); in Init() 223 RINOK(_aesFilter.QueryInterface(IID_ICryptoProperties, &cp)); in Init() 224 RINOK(cp->SetKey(_key.Key, sizeof(_key.Key))); in Init() 225 RINOK(cp->SetInitVector(_iv, sizeof(_iv))); in Init()
|
/external/lzma/CPP/7zip/UI/Console/ |
D | List.cpp | 416 RINOK(archive->GetNumberOfProperties(&numProps)); in AddMainProps() 422 RINOK(archive->GetPropertyInfo(i, &name, &propID, &vt)); in AddMainProps() 431 RINOK(getRawProps->GetNumRawProps(&numProps)); in AddRawProps() 436 RINOK(getRawProps->GetRawPropInfo(i, &name, &propID)); in AddRawProps() 542 RINOK(Arc->GetRawProps->GetRawProp(index, f.PropID, &data, &dataSize, &propType)); in PrintItemInfo() 600 RINOK(Arc->Archive->GetProperty(index, f.PropID, &prop)); in PrintItemInfo() 738 RINOK(archive->GetProperty(index, propID, &prop)); in GetUInt64Value() 749 RINOK(archive->GetProperty(index, kpidMTime, &prop)); in GetItemMTime() 816 RINOK(archive->GetArchiveProperty(propID, &prop)); in PrintArcProp() 1032 RINOK(PrintArcProp(archive, kpidPhySize, NULL)); in ListArchives() [all …]
|
/external/lzma/CPP/7zip/Bundles/SFXSetup/ |
D | ExtractCallbackSfx.cpp | 72 RINOK(ProgressDialog.Sync.ProcessStopAndPause()); in SetCompleted() 99 RINOK(_archiveHandler->GetProperty(index, kpidPath, &propVariantName)); in GetStream() 114 RINOK(_archiveHandler->GetProperty(index, kpidAttrib, &prop)); in GetStream() 124 RINOK(_archiveHandler->GetProperty(index, kpidIsDir, &prop)); in GetStream() 130 RINOK(_archiveHandler->GetProperty(index, kpidIsAnti, &propTemp)); in GetStream() 135 RINOK(_archiveHandler->GetProperty(index, kpidMTime, &prop)); in GetStream() 232 RINOK(_outFileStreamSpec->Close()); in SetOperationResult()
|
/external/lzma/CPP/7zip/UI/FileManager/ |
D | ExtractCallback.cpp | 327 RINOK(ProgressDialog->Sync.CheckStop()); in BeforeOpen() 567 RINOK(MessageError("can not replace file with folder with same name: ", destPathSys)); in AskWrite() 576 RINOK(MessageError("can not replace folder with file with same name: ", destPathSys)); in AskWrite() 596 RINOK(AskOverwrite( in AskWrite() 621 RINOK(MessageError("can not create name for file: ", destPathSys)); in AskWrite() 629 RINOK(MessageError("can not delete output file: ", destPathSys)); in AskWrite() 648 RINOK(getProp->GetProp(propID, &prop)); in GetTime() 664 RINOK(getProp->GetProp(propID, &prop)); in GetItemBoolProp() 701 RINOK(getProp->GetProp(kpidSize, &prop)); in GetStream7() 728 RINOK(GetTime(getProp, kpidCTime, file.CTime, file.CTimeDefined)); in GetStream7() [all …]
|
/external/lzma/CPP/7zip/Compress/ |
D | LzmaDecoder.cpp | 66 RINOK(SResToHRESULT(LzmaDec_Allocate(&_state, prop, size, &g_Alloc))); in SetDecoderProperties2() 103 RINOK(inStream->Read(_inBuf, _inBufSizeAllocated, &_inSize)); in CodeSpec() 147 RINOK(res2); in CodeSpec() 168 RINOK(progress->SetRatioInfo(&inSize, &_outSizeProcessed)); in CodeSpec() 196 RINOK(_inStream->Read(_inBuf, _inBufSizeAllocated, &_inSize)); in Read() 219 RINOK(SResToHRESULT(res)); in Read() 236 RINOK(CreateInputBuffer()); in ReadFromInputStream() 244 RINOK(_inStream->Read(_inBuf, _inBufSizeAllocated, &_inSize)); in ReadFromInputStream()
|