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

Function tpt_lua_checkByteString

src/lua/LuaScriptInterface.cpp:834–842  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

832}
833
834ByteString tpt_lua_checkByteString(lua_State *L, int index)
835{
836 size_t size;
837 if (auto *data = luaL_checklstring(L, index, &size))
838 {
839 return ByteString(data, size);
840 }
841 return {};
842}
843
844String tpt_lua_checkString(lua_State *L, int index, bool ignoreError)
845{

Callers 15

compressFunction · 0.85
decompressFunction · 0.85
LuaSetPropertyFunction · 0.85
tpt_lua_checkStringFunction · 0.85
tpt_lua_optByteStringFunction · 0.85
openLinkFunction · 0.85
activeToolFunction · 0.85
propertyFunction · 0.85
getByNameFunction · 0.85
CloseFunction · 0.85
NewFunction · 0.85
propertyFunction · 0.85

Calls 1

ByteStringClass · 0.50

Tested by

no test coverage detected