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

Method createChild

Libraries/unrar/model.cpp:15–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15inline RARPPM_CONTEXT* RARPPM_CONTEXT::createChild(ModelPPM *Model,RARPPM_STATE* pStats,
16 RARPPM_STATE& FirstState)
17{
18 RARPPM_CONTEXT* pc = (RARPPM_CONTEXT*) Model->SubAlloc.AllocContext();
19 if ( pc )
20 {
21 pc->NumStats=1;
22 pc->OneState=FirstState;
23 pc->Suffix=this;
24 pStats->Successor=pc;
25 }
26 return pc;
27}
28
29
30ModelPPM::ModelPPM()

Callers 1

CreateSuccessorsMethod · 0.80

Calls 1

AllocContextMethod · 0.80

Tested by

no test coverage detected