Example #1
0
 static int QPYX_WriteBytes_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 2);
         DNet.Buffer QPYX_obj_YXQP  = (DNet.Buffer)ToLua.CheckObject <DNet.Buffer>(L_YXQP, 1);
         byte[]      QPYX_arg0_YXQP = ToLua.CheckByteBuffer(L_YXQP, 2);
         QPYX_obj_YXQP.WriteBytes(QPYX_arg0_YXQP);
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Example #2
0
 static int WriteBytes(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         DNet.Buffer obj  = (DNet.Buffer)ToLua.CheckObject <DNet.Buffer>(L, 1);
         byte[]      arg0 = ToLua.CheckByteBuffer(L, 2);
         obj.WriteBytes(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }