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

Method MBPtr

Libraries/unrar/suballoc.cpp:49–52  ·  view source on GitHub ↗

Calculate RARPPM_MEM_BLK+Items address. Real RARPPM_MEM_BLK size must be equal to UNIT_SIZE, so we cannot just add Items to RARPPM_MEM_BLK address.

Source from the content-addressed store, hash-verified

47// Calculate RARPPM_MEM_BLK+Items address. Real RARPPM_MEM_BLK size must be
48// equal to UNIT_SIZE, so we cannot just add Items to RARPPM_MEM_BLK address.
49inline RARPPM_MEM_BLK* SubAllocator::MBPtr(RARPPM_MEM_BLK *BasePtr,int Items)
50{
51 return((RARPPM_MEM_BLK*)( ((byte *)(BasePtr))+U2B(Items) ));
52}
53
54
55inline void SubAllocator::SplitBlock(void* pv,int OldIndx,int NewIndx)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected