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)
109
int removeIndex =
_memoryStreamList
.BinarySearch(GetSearchBlockForOffset(newLength));
118
MemoryStreamBlock memStreamBlock =
_memoryStreamList
[removeIndex];
131
for (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);
226
int index =
_memoryStreamList
.BinarySearch(GetSearchBlockForOffset(_currentStreamPosition));
231
for ( ; index <
_memoryStreamList
.Count; ++index)
233
MemoryStreamBlock memStreamBlock =
_memoryStreamList
[index];
417
foreach (MemoryStreamBlock memStreamBlock in
_memoryStreamList
)
453
return
_memoryStreamList
;
520
int index =
_memoryStreamList
.BinarySearch(GetSearchBlockForOffset(_currentStreamPosition));
532
prevMemStreamBlock =
_memoryStreamList
[index - 1];
546
prevMemStreamBlock =
_memoryStreamList
[index];
568
_memoryStreamList
.Insert(index, prevMemStreamBlock);
576
for (i = index; i <
_memoryStreamList
.Count; ++i)
578
if (
_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);
591
if (index <
_memoryStreamList
.Count) // Get the next block of the new write block
593
memStreamBlock =
_memoryStreamList
[index];
606
_memoryStreamList
.RemoveAt(index);
616
_memoryStreamList
.RemoveAt(index);
632
_memoryStreamList
.Insert(index, memStreamBlock);
659
Debug.Assert(
_memoryStreamList
.Count ==0); // it must be empty in isolated storage mode
682
_memoryStreamList
.Add(newMemStreamBlock);
720
foreach(MemoryStreamBlock memStreamBlock in
_memoryStreamList
)
725
_memoryStreamList
.Clear();
747
foreach(MemoryStreamBlock memStreamBlock in
_memoryStreamList
)