Exemplo n.º 1
0
        public static void popAction(out Byte[] data)
        {
            data = null;

            if (arRead.readOffset == 0)
            {
                arRead.readCount = arRead.readActionCount();
            }

            if (arRead.readIndex >= arRead.readCount)
            {
                return;
            }

            if (arRead.readCount == 0)
            {
                return;
            }

            int read = 0;

            arRead.readAction(out data, arRead.readOffset, out read);
            arRead.readOffset += read;
            arRead.readIndex++;
        }
Exemplo n.º 2
0
 static public int readAction(IntPtr l)
 {
     try {
         Game.ActionRecord self = (Game.ActionRecord)checkSelf(l);
         System.Byte[]     a1;
         System.Int32      a2;
         checkType(l, 3, out a2);
         System.Int32 a3;
         var          ret = self.readAction(out a1, a2, out a3);
         pushValue(l, ret);
         pushValue(l, a1);
         pushValue(l, a3);
         return(3);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }