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

Method Detach

src/tier1/utlmemory.cpp:81–87  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Fast swap -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

79// Fast swap
80//-----------------------------------------------------------------------------
81void *CUtlMemoryBase::Detach()
82{
83 m_nAllocationCount = 0;
84 void *pMemory = m_pMemory;
85 m_pMemory = NULL;
86 return pMemory;
87}
88
89
90//-----------------------------------------------------------------------------

Callers 1

DetachAndClearMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected