| 24 | |
| 25 | |
| 26 | class ScriptReader : public Mona::ReferableReader { |
| 27 | public: |
| 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 | |
| 37 | private: |
| 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 | }; |
no outgoing calls
no test coverage detected