Ejemplo n.º 1
0
 public static bool CheckTestArray(BufferActions actions, byte[] testArray)
 {
     for (int i = 0; i < testArray.Length; ++i)
     {
         var b = actions.ReadByte();
         if ((byte)i != b)
         {
             return(false);
         }
     }
     return(true);
 }
Ejemplo n.º 2
0
 public BufferWriteEventArgs(BufferActions action, ulong position, ulong byteLength)
 {
     _action     = action;
     _position   = position;
     _ByteLength = byteLength;
 }