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

Method DetachAndClear

src/tier1/utlbuffer.cpp:1644–1655  ·  view source on GitHub ↗

----------------------------------------------------------------------------- memory access -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1642// memory access
1643//-----------------------------------------------------------------------------
1644void *CUtlBuffer::DetachAndClear()
1645{
1646 void *pubData = m_Memory.Detach();
1647
1648 m_Get = 0;
1649 m_Put = 0;
1650 m_Error = 0;
1651 m_nMaxPut = -1;
1652 AddNullTermination();
1653
1654 return pubData;
1655}
1656
1657
1658void CUtlBuffer::PutChar( char c )

Callers

nothing calls this directly

Calls 1

DetachMethod · 0.45

Tested by

no test coverage detected