MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / read

Method read

MonaServer/sources/ScriptReader.cpp:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35#if defined(_DEBUG)
36UInt32 ScriptReader::read(DataWriter& writer, UInt32 count) {
37 // DEBUG causes this method is used a lot and dynamic_cast is cpu expensive
38 if (dynamic_cast<ScriptWriter*>(&writer))
39 CRITIC("A ScriptReader is writing to a ScriptWriter, behavior undefined (unsafe)")
40 return ReferableReader::read(writer, count);
41}
42#endif
43
44

Callers 15

SendMethod · 0.45
LUAPublication.cppFile · 0.45
BroadcastMethod · 0.45
MonaServer.cppFile · 0.45
onConnectionMethod · 0.45
ifFunction · 0.45
onMessageMethod · 0.45
onFileAccessMethod · 0.45
LUAInvoker.cppFile · 0.45
WriteMessageMethod · 0.45
WriteInvocationMethod · 0.45
ToDataFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected