MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetAllocatedMemory

Method GetAllocatedMemory

trinity/Tr2VirtualAllocator.cpp:137–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137size_t Tr2VirtualAllocator::GetAllocatedMemory() const
138{
139 //m_allocatedMemory includes the reserved blocks, so subtract the size of the reservations.
140 return m_allocatedMemory - m_reservedBlocks.size() * m_blockSize;
141}

Callers 4

Tr2SuballocatedBufferMethod · 0.80
AllocateMethod · 0.80
FreeMethod · 0.80
ReleaseResourcesMethod · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected