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); }
public BufferWriteEventArgs(BufferActions action, ulong position, ulong byteLength) { _action = action; _position = position; _ByteLength = byteLength; }