MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / NetDelayEvent

Method NetDelayEvent

Engine/source/sim/netConnection.cpp:787–792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

785 BitStream stream;
786public:
787 NetDelayEvent(BitStream *inStream) : stream(NULL, 0)
788 {
789 dMemcpy(buffer, inStream->getBuffer(), inStream->getPosition());
790 stream.setBuffer(buffer, inStream->getPosition());
791 stream.setPosition(inStream->getPosition());
792 }
793 void process(SimObject *object)
794 {
795 ((NetConnection *) object)->sendPacket(&stream);

Callers

nothing calls this directly

Calls 5

dMemcpyFunction · 0.50
getBufferMethod · 0.45
getPositionMethod · 0.45
setBufferMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected