private void AssertCanRead(byte[] buffer, int offset, int count)
{
Debug.Assert(!_fileHandle.IsClosed, "!_fileHandle.IsClosed");
Debug.Assert(CanRead, "CanRead");
Debug.Assert(buffer != null, "buffer != null");
Debug.Assert(_writePos == 0, "_writePos == 0");
Debug.Assert(offset >= 0, "offset is negative");
Debug.Assert(count >= 0, "count is negative");
}