Lua/LuaState: Add Load methods

This commit is contained in:
Lynix
2018-05-13 14:42:27 +02:00
parent 70e0787b93
commit 8b6311de63
3 changed files with 71 additions and 36 deletions

View File

@@ -112,6 +112,11 @@ namespace Nz
bool IsOfType(int index, const String& tname) const;
bool IsValid(int index) const;
bool Load(const String& code);
bool LoadFromFile(const String& filePath);
bool LoadFromMemory(const void* data, std::size_t size);
bool LoadFromStream(Stream& stream);
long long Length(int index) const;
std::size_t LengthRaw(int index) const;