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

Method CleanUp

Libraries/unrar/model.cpp:561–566  ·  view source on GitHub ↗

reset PPM variables after data error allowing safe resuming of further data processing

Source from the content-addressed store, hash-verified

559// reset PPM variables after data error allowing safe resuming
560// of further data processing
561void ModelPPM::CleanUp()
562{
563 SubAlloc.StopSubAllocator();
564 SubAlloc.StartSubAllocator(1);
565 StartModelRare(2);
566}
567
568
569bool ModelPPM::DecodeInit(Unpack *UnpackRead,int &EscChar)

Callers 2

SafePPMDecodeCharMethod · 0.80
Unpack29Method · 0.80

Calls 2

StopSubAllocatorMethod · 0.80
StartSubAllocatorMethod · 0.80

Tested by

no test coverage detected