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