MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_docompiled_bytestream

Function lua_docompiled_bytestream

src/Chain/libraries/glua/lauxlib.cpp:1021–1031  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1019}
1020
1021LUA_API int lua_docompiled_bytestream(lua_State *L, void *stream_addr)
1022{
1023 GluaModuleByteStreamP stream = (GluaModuleByteStreamP) stream_addr;
1024 if (luaL_loadbufferx(L, stream->buff.data(), stream->buff.size(), "compiled_chunk", "binary"))
1025 {
1026 printf("error\n");
1027 return LUA_ERRRUN;
1028 }
1029 lua_pcall(L, 0, 0, 0);
1030 return LUA_OK;
1031}
1032
1033static bool findloader_for_import_stream(lua_State *L, const char *name) {
1034 int i;

Callers 1

run_compiled_bytestreamFunction · 0.85

Calls 4

luaL_loadbufferxFunction · 0.85
printfClass · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected