MCPcopy Create free account
hub / github.com/JACoders/OpenJK / MSG_ReadByte

Function MSG_ReadByte

code/qcommon/msg.cpp:285–295  ·  view source on GitHub ↗

returns -1 if no more characters are available

Source from the content-addressed store, hash-verified

283
284// returns -1 if no more characters are available
285int MSG_ReadByte( msg_t *msg ) {
286 int c;
287
288 if ( msg->readcount+1 > msg->cursize ) {
289 c = -1;
290 } else {
291 c = (unsigned char)MSG_ReadBits( msg, 8 );
292 }
293
294 return c;
295}
296
297int MSG_ReadShort( msg_t *msg ) {
298 int c;

Callers 9

MSG_ReadStringFunction · 0.70
MSG_ReadStringLineFunction · 0.70
MSG_ReadDataFunction · 0.70
MSG_ReadDeltaEntityFunction · 0.70
CL_ParseSnapshotFunction · 0.50
CL_ParseGamestateFunction · 0.50
CL_ParseServerMessageFunction · 0.50
SV_UserMoveFunction · 0.50
SV_ExecuteClientMessageFunction · 0.50

Calls 1

MSG_ReadBitsFunction · 0.70

Tested by

no test coverage detected