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

Method writeBytes

MonaServer/sources/ScriptWriter.cpp:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93UInt64 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
104UInt64 ScriptWriter::beginObject(const char* type) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected