static int CopyBytes(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); MemBlock obj = (MemBlock)ToLua.CheckObject(L, 1, typeof(MemBlock)); byte[] arg0 = ToLua.CheckByteBuffer(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);; int arg2 = (int)LuaDLL.luaL_checknumber(L, 4);; obj.CopyBytes(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }