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

Method PeekStringMatch

src/tier1/utlbuffer.cpp:511–516  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Does the next bytes of the buffer match a pattern? -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

509// Does the next bytes of the buffer match a pattern?
510//-----------------------------------------------------------------------------
511bool CUtlBuffer::PeekStringMatch( int nOffset, const char *pString, int nLen )
512{
513 if ( !CheckPeekGet( nOffset, nLen ) )
514 return false;
515 return !V_strncmp( (const char*)PeekGet(nOffset), pString, nLen );
516}
517
518
519//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

V_strncmpFunction · 0.85

Tested by

no test coverage detected