MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / ShowUnpRead

Method ShowUnpRead

Libraries/unrar/rdwrfn.cpp:229–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227
228
229void ComprDataIO::ShowUnpRead(int64 ArcPos,int64 ArcSize)
230{
231 if (ShowProgress && SrcFile!=NULL)
232 {
233 if (TotalArcSize!=0)
234 {
235 // important when processing several archives or multivolume archive
236 ArcSize=TotalArcSize;
237 ArcPos+=ProcessedArcSize;
238 }
239
240 Archive *SrcArc=(Archive *)SrcFile;
241 RAROptions *Cmd=SrcArc->GetRAROptions();
242
243 int CurPercent=ToPercent(ArcPos,ArcSize);
244 if (!Cmd->DisablePercentage && CurPercent!=LastPercent)
245 {
246 uiExtractProgress(CurUnpWrite,SrcArc->FileHead.UnpSize,ArcPos,ArcSize);
247 LastPercent=CurPercent;
248 }
249 }
250}
251
252
253void ComprDataIO::ShowUnpWrite()

Callers

nothing calls this directly

Calls 3

ToPercentFunction · 0.85
GetRAROptionsMethod · 0.80
uiExtractProgressFunction · 0.70

Tested by

no test coverage detected