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

Method Swap

src/tier1/utlbuffer.cpp:1603–1610  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1601// Fast swap
1602//-----------------------------------------------------------------------------
1603void CUtlBuffer::Swap( CUtlBuffer &buf )
1604{
1605 SWAP( m_Get, buf.m_Get );
1606 SWAP( m_Put, buf.m_Put );
1607 SWAP( m_nMaxPut, buf.m_nMaxPut );
1608 SWAP( m_Error, buf.m_Error );
1609 m_Memory.Swap( buf.m_Memory );
1610}
1611
1612
1613//-----------------------------------------------------------------------------

Callers 2

TakeOwnershipOfMemoryMethod · 0.45
ReleaseToMemoryMethod · 0.45

Calls 1

SWAPFunction · 0.85

Tested by

no test coverage detected