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

Class ScriptReader

MonaServer/sources/ScriptReader.h:26–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25
26class ScriptReader : public Mona::ReferableReader {
27public:
28 // Read the count number of lua object in the lua_State stack
29 ScriptReader(lua_State *pState, Mona::UInt32 count);
30
31#if defined(_DEBUG)
32 Mona::UInt32 read(Mona::DataWriter& writer,Mona::UInt32 count=END);
33#endif
34
35 void reset();
36
37private:
38 Mona::UInt8 followingType();
39 bool readOne(Mona::UInt8 type, Mona::DataWriter& writer);
40
41 bool writeNext(Mona::DataWriter& writer);
42
43 lua_State* _pState;
44 int _start;
45 int _current;
46 int _end;
47};

Callers 9

SendMethod · 0.85
LUAPublication.cppFile · 0.85
BroadcastMethod · 0.85
ifFunction · 0.85
onMessageMethod · 0.85
LUAInvoker.cppFile · 0.85
WriteMessageMethod · 0.85
WriteInvocationMethod · 0.85
ToDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected