fix reading binary file as string

This commit is contained in:
MihailRis
2025-03-17 02:14:17 +03:00
parent b009826d33
commit 104cc11645
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -184,6 +184,11 @@ namespace lua {
return 1;
}
inline int pushlstring(lua::State* L, std::string_view view) {
lua_pushlstring(L, reinterpret_cast<const char*>(view.data()), view.size());
return 1;
}
template <typename... Args>
inline int pushfstring(lua_State* L, const char* fmt, Args... args) {
lua_pushfstring(L, fmt, args...);