MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / Print

Method Print

neo/tools/debugger/DebuggerServer.cpp:781–797  ·  view source on GitHub ↗

================ rvDebuggerServer::Print Sends a console print message over to the debugger client ================ */

Source from the content-addressed store, hash-verified

779================
780*/
781void rvDebuggerServer::Print ( const char* text )
782{
783 if ( !mConnected )
784 {
785 return;
786 }
787
788 idBitMsg msg;
789 byte buffer[MAX_MSGLEN];
790
791 msg.Init( buffer, sizeof( buffer ) );
792 msg.BeginWriting();
793 msg.WriteShort ( (short)DBMSG_PRINT );
794 msg.WriteString ( text );
795
796 SendPacket ( msg.GetData(), msg.GetSize() );
797}

Callers 2

DebuggerServerPrintFunction · 0.45
PrintBrushFunction · 0.45

Calls 6

BeginWritingMethod · 0.80
InitMethod · 0.45
WriteShortMethod · 0.45
WriteStringMethod · 0.45
GetDataMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected