MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / dump_byte_code

Function dump_byte_code

ogsr_engine/xrGame/script_vars_storage.cpp:317–324  ·  view source on GitHub ↗

typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud);

Source from the content-addressed store, hash-verified

315
316// typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud);
317int dump_byte_code(lua_State* L, const void* src, size_t size, void* ud)
318{
319 if (!src || !size || !ud)
320 return -1;
321 CMemoryWriter* dst = (CMemoryWriter*)ud;
322 dst->w(src, size);
323 return 0;
324}
325
326int CScriptVarsTable::assign(lua_State* L, int index)
327{

Callers

nothing calls this directly

Calls 1

wMethod · 0.45

Tested by

no test coverage detected