LuaInterface.LuaDLL.lua_gc C# (CSharp) Méthode

lua_gc() private méthode

private lua_gc ( IntPtr luaState, LuaGCOptions what, int data ) : int
luaState System.IntPtr
what LuaGCOptions
data int
Résultat int
        public static extern int lua_gc(IntPtr luaState, LuaGCOptions what, int data);
        [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]

Usage Example

        public static long GetLuaMemory(IntPtr luaState)
        {
            long result = 0;

            result = LuaDLL.lua_gc(luaState, LuaGCOptions.LUA_GCCOUNT, 0);
            result = result * 1024 + LuaDLL.lua_gc(luaState, LuaGCOptions.LUA_GCCOUNTB, 0);

            return(result);
        }
All Usage Examples Of LuaInterface.LuaDLL::lua_gc
LuaDLL