private void EnsureIsReadOnly() { if (!_isReadOnly) { throw new InvalidOperationException("MultiChunkBuffer is not read only."); } }