| 91 | } |
| 92 | |
| 93 | UInt64 ScriptWriter::writeBytes(const UInt8* data,UInt32 size) { |
| 94 | start(); |
| 95 | lua_newtable(_pState); |
| 96 | lua_pushlstring(_pState,(const char*)data,size); |
| 97 | lua_setfield(_pState,-2,"__raw"); |
| 98 | UInt64 ref(reference()); |
| 99 | end(); |
| 100 | return ref; |
| 101 | } |
| 102 | |
| 103 | |
| 104 | UInt64 ScriptWriter::beginObject(const char* type) { |
nothing calls this directly
no outgoing calls
no test coverage detected