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

Method Get

neo/framework/async/MsgChannel.cpp:100–112  ·  view source on GitHub ↗

=============== idMsgQueue::Get =============== */

Source from the content-addressed store, hash-verified

98===============
99*/
100bool idMsgQueue::Get( byte *data, int &size ) {
101 if ( first == last ) {
102 size = 0;
103 return false;
104 }
105 int sequence id_attribute((unused));
106 size = ReadShort();
107 sequence = ReadInt();
108 ReadData( data, size );
109 assert( sequence == first );
110 first++;
111 return true;
112}
113
114/*
115===============

Callers 4

LocalizeMapFunction · 0.45
Com_LocalizeMapsTest_fFunction · 0.45
ReadMessageDataMethod · 0.45
GetReliableMessageMethod · 0.45

Calls 1

ReadShortFunction · 0.85

Tested by

no test coverage detected