5 writes to _currentStreamPosition
WindowsBase (5)
Base\MS\Internal\IO\Packaging\SparseMemoryStream.cs (5)
142_currentStreamPosition = _currentStreamLength; 179_currentStreamPosition = newStreamPosition; 255_currentStreamPosition += bytesRead; 286_currentStreamPosition += count; 572_currentStreamPosition += count; // Update the stream position since the write request is satisfied by this point
24 references to _currentStreamPosition
WindowsBase (24)
Base\MS\Internal\IO\Packaging\SparseMemoryStream.cs (24)
73return _currentStreamPosition; 141if (_currentStreamPosition > _currentStreamLength) 156long newStreamPosition = _currentStreamPosition; 181return _currentStreamPosition; 190Debug.Assert(_currentStreamPosition >= 0); 197if (_currentStreamLength <= _currentStreamPosition) 204int bytesToRead = (int) Math.Min((long)count, _currentStreamLength - _currentStreamPosition); 215_isolatedStorageStream.Seek(_currentStreamPosition, SeekOrigin.Begin); 226int index = _memoryStreamList.BinarySearch(GetSearchBlockForOffset(_currentStreamPosition)); 238_currentStreamPosition, bytesToRead, 245buffer, (int)(offset + overlapBlockOffset - _currentStreamPosition), 270Debug.Assert(_currentStreamPosition >= 0); 283_isolatedStorageStream.Seek(_currentStreamPosition, SeekOrigin.Begin); 292_currentStreamLength = Math.Max(_currentStreamLength, _currentStreamPosition); 520int index = _memoryStreamList.BinarySearch(GetSearchBlockForOffset(_currentStreamPosition)); 535if (CanCollapseWithPreviousBlock(prevMemStreamBlock, _currentStreamPosition, (long) count)) 539SkipWrite(prevMemStreamBlock.Stream, prevMemStreamBlock.EndOffset, _currentStreamPosition); 551prevMemStreamBlock.Stream.Seek(_currentStreamPosition - prevMemStreamBlock.Offset, SeekOrigin.Begin); 559prevMemStreamBlock.Stream.SetLength(_currentStreamPosition - prevMemStreamBlock.Offset); 566prevMemStreamBlock = ConstructMemoryStreamFromWriteRequest(buffer, _currentStreamPosition, count, offset); 578if (_memoryStreamList[i].EndOffset > _currentStreamPosition) 594blockOffset = _currentStreamPosition - memStreamBlock.Offset; 610SkipWrite(prevMemStreamBlock.Stream, _currentStreamPosition, memStreamBlock.Offset); 628_currentStreamPosition,