MCPcopy Create free account
hub / github.com/Tencent/xLua / LoadString

Function LoadString

Assets/XLua/Src/LuaEnv.cs:241–245  ·  view source on GitHub ↗
(string chunk, string chunkName = "chunk", LuaTable env = null)

Source from the content-addressed store, hash-verified

239 }
240
241 public T LoadString<T>(string chunk, string chunkName = "chunk", LuaTable env = null)
242 {
243 byte[] bytes = System.Text.Encoding.UTF8.GetBytes(chunk);
244 return LoadString<T>(bytes, chunkName, env);
245 }
246
247 public LuaFunction LoadString(string chunk, string chunkName = "chunk", LuaTable env = null)
248 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected