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

Method SplitBlock

Libraries/unrar/suballoc.cpp:55–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55inline void SubAllocator::SplitBlock(void* pv,int OldIndx,int NewIndx)
56{
57 int i, UDiff=Indx2Units[OldIndx]-Indx2Units[NewIndx];
58 byte* p=((byte*) pv)+U2B(Indx2Units[NewIndx]);
59 if (Indx2Units[i=Units2Indx[UDiff-1]] != UDiff)
60 {
61 InsertNode(p,--i);
62 p += U2B(i=Indx2Units[i]);
63 UDiff -= i;
64 }
65 InsertNode(p,Units2Indx[UDiff-1]);
66}
67
68
69void SubAllocator::StopSubAllocator()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected