MCPcopy Create free account
hub / github.com/ValveSoftware/GameNetworkingSockets / Purge

Method Purge

src/tier1/utlmemory.cpp:310–322  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Memory deallocation -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

308// Memory deallocation
309//-----------------------------------------------------------------------------
310void CUtlMemoryBase::Purge()
311{
312 if ( !IsExternallyAllocated() )
313 {
314 if (m_pMemory)
315 {
316 UTLMEMORY_TRACK_FREE();
317 FreePv( m_pMemory );
318 m_pMemory = 0;
319 }
320 m_nAllocationCount = 0;
321 }
322}
323
324
325void CUtlMemoryBase::Purge( int numElements, bool bRealloc )

Calls

no outgoing calls

Tested by

no test coverage detected