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

Method ReleaseToMemory

src/tier1/utlbuffer.cpp:1632–1637  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Release our memory to a CUtlMemory The punCurrentPut parameter is because that information (how much of the memory allocated has been written to) is lost when transferring into a CUtlMemory -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1630// allocated has been written to) is lost when transferring into a CUtlMemory
1631//-----------------------------------------------------------------------------
1632void CUtlBuffer::ReleaseToMemory( CUtlMemory<uint8> &mem, int *punCurrentPut )
1633{
1634 *punCurrentPut = m_Put;
1635 m_Memory.Swap( mem );
1636 Purge();
1637}
1638
1639
1640

Callers

nothing calls this directly

Calls 1

SwapMethod · 0.45

Tested by

no test coverage detected