add base64 library

This commit is contained in:
MihailRis
2024-11-18 11:52:06 +03:00
parent 712c0756b8
commit 0bfc5d2ad4
6 changed files with 62 additions and 3 deletions
+5
View File
@@ -240,6 +240,11 @@ namespace lua {
inline const char* tostring(lua::State* L, int idx) {
return lua_tostring(L, idx);
}
inline std::string_view tolstring(lua::State* L, int idx) {
size_t len = 0;
auto string = lua_tolstring(L, idx, &len);
return std::string_view(string, len);
}
inline const void* topointer(lua::State* L, int idx) {
return lua_topointer(L, idx);
}