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

Method CopyToBuffer

neo/framework/async/MsgChannel.cpp:145–152  ·  view source on GitHub ↗

=============== idMsgQueue::CopyToBuffer =============== */

Source from the content-addressed store, hash-verified

143===============
144*/
145void idMsgQueue::CopyToBuffer( byte *buf ) const {
146 if ( startIndex <= endIndex ) {
147 memcpy( buf, buffer + startIndex, endIndex - startIndex );
148 } else {
149 memcpy( buf, buffer + startIndex, sizeof( buffer ) - startIndex );
150 memcpy( buf + sizeof( buffer ) - startIndex, buffer, endIndex );
151 }
152}
153
154/*
155===============

Callers 1

WriteMessageDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected