Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ memoryUsage
Method
memoryUsage
source/core/StarLua.cpp:580–582 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
578
}
579
580
size_t LuaEngine::memoryUsage() const {
581
return (size_t)lua_gc(m_state, LUA_GCCOUNT, 0) * 1024 + lua_gc(m_state, LUA_GCCOUNTB, 0);
582
}
583
584
LuaNullEnforcer LuaEngine::nullTerminate() {
585
return LuaNullEnforcer(*this);
Callers
nothing calls this directly
Calls
1
lua_gc
Function · 0.85
Tested by
no test coverage detected