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

Function LoadString

Plugins/UnLua/Source/UnLua/Public/LuaEnv.h:149–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 virtual lua_Alloc GetLuaAllocator() const;
148
149 bool LoadString(const TArray<uint8>& Chunk, const FString& ChunkName = "chunk")
150 {
151 const char* Bytes = (char*)Chunk.GetData();
152 return LoadBuffer(Bytes, Chunk.Num(), TCHAR_TO_UTF8(*ChunkName));
153 }
154
155 bool LoadString(const FString& Chunk, const FString& ChunkName = "chunk")
156 {

Callers

nothing calls this directly

Calls 4

GetDataMethod · 0.45
NumMethod · 0.45
GetMethod · 0.45
LengthMethod · 0.45

Tested by

no test coverage detected