static int Flush(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); LuaFramework.ByteBuffer obj = (LuaFramework.ByteBuffer)ToLua.CheckObject <LuaFramework.ByteBuffer>(L, 1); obj.Flush(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }