2 writes to _memoryStreamList
WindowsBase (2)
Base\MS\Internal\IO\Packaging\SparseMemoryStream.cs (2)
385_memoryStreamList = new List<MemoryStreamBlock>(5); 436_memoryStreamList = null;
29 references to _memoryStreamList
WindowsBase (29)
Base\MS\Internal\IO\Packaging\SparseMemoryStream.cs (29)
109int removeIndex = _memoryStreamList.BinarySearch(GetSearchBlockForOffset(newLength)); 118MemoryStreamBlock memStreamBlock = _memoryStreamList[removeIndex]; 131for (int i = removeIndex; i < _memoryStreamList.Count; ++i) 133_memoryStreamList[i].Stream.Close(); // we need to carefully close the memoryStreams so they properly report the memory usage 136_memoryStreamList.RemoveRange(removeIndex, _memoryStreamList.Count - removeIndex); 226int index = _memoryStreamList.BinarySearch(GetSearchBlockForOffset(_currentStreamPosition)); 231for ( ; index < _memoryStreamList.Count; ++index) 233MemoryStreamBlock memStreamBlock = _memoryStreamList[index]; 417foreach (MemoryStreamBlock memStreamBlock in _memoryStreamList) 453return _memoryStreamList; 520int index = _memoryStreamList.BinarySearch(GetSearchBlockForOffset(_currentStreamPosition)); 532prevMemStreamBlock = _memoryStreamList[index - 1]; 546prevMemStreamBlock = _memoryStreamList[index]; 568_memoryStreamList.Insert(index, prevMemStreamBlock); 576for (i = index; i < _memoryStreamList.Count; ++i) 578if (_memoryStreamList[i].EndOffset > _currentStreamPosition) 581_memoryStreamList[i].Stream.Close(); // we need to carefully close the memoryStreams so they properly report the memory usage 584_memoryStreamList.RemoveRange(index, i - index); 591if (index < _memoryStreamList.Count) // Get the next block of the new write block 593memStreamBlock = _memoryStreamList[index]; 606_memoryStreamList.RemoveAt(index); 616_memoryStreamList.RemoveAt(index); 632_memoryStreamList.Insert(index, memStreamBlock); 659Debug.Assert(_memoryStreamList.Count ==0); // it must be empty in isolated storage mode 682_memoryStreamList.Add(newMemStreamBlock); 720foreach(MemoryStreamBlock memStreamBlock in _memoryStreamList) 725_memoryStreamList.Clear(); 747foreach(MemoryStreamBlock memStreamBlock in _memoryStreamList)