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

Function MSG_WriteByte

code/qcommon/msg.cpp:224–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222//
223
224void MSG_WriteByte( msg_t *sb, int c ) {
225#ifdef PARANOID
226 if (c < 0 || c > 255)
227 Com_Error (ERR_FATAL, "MSG_WriteByte: range error");
228#endif
229
230 MSG_WriteBits( sb, c, 8 );
231}
232
233void MSG_WriteShort( msg_t *sb, int c ) {
234#ifdef PARANOID

Callers 5

MSG_WriteDeltaEntityFunction · 0.70
CL_WritePacketFunction · 0.50
SV_SendClientGameStateFunction · 0.50
SV_WriteSnapshotToClientFunction · 0.50

Calls 2

Com_ErrorFunction · 0.70
MSG_WriteBitsFunction · 0.70

Tested by

no test coverage detected