MCPcopy Create free account
hub / github.com/The-Powder-Toy/The-Powder-Toy / tpt_lua_toByteString

Function tpt_lua_toByteString

src/lua/LuaScriptInterface.cpp:819–827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817}
818
819ByteString tpt_lua_toByteString(lua_State *L, int index)
820{
821 size_t size;
822 if (auto *data = lua_tolstring(L, index, &size))
823 {
824 return ByteString(data, size);
825 }
826 return {};
827}
828
829String tpt_lua_toString(lua_State *L, int index, bool ignoreError)
830{

Callers 10

heatDisplayLimitsFunction · 0.85
atPanicFunction · 0.85
LuaScriptInterfaceMethod · 0.85
tpt_lua_toStringFunction · 0.85
allocateFunction · 0.85
NewFunction · 0.85
drawCapFunction · 0.85
allocateFunction · 0.85
partPropertyFunction · 0.85
requestFunction · 0.85

Calls 1

ByteStringClass · 0.50

Tested by

no test coverage detected