private DiskIo(DiskMedium stream, bool isReadOnly) { if (stream == null) throw new ArgumentNullException("stream"); m_isReadOnly = isReadOnly; m_blockSize = stream.BlockSize; m_stream = stream; }