1 write to _cache
PresentationFramework (1)
MS\Internal\Documents\PageCache.cs (1)
43
_cache
= new List<PageCacheEntry>(_defaultCacheSize);
33 references to _cache
PresentationFramework (33)
MS\Internal\Documents\PageCache.cs (33)
168
return
_cache
.Count;
261
if (pageNumber >= 0 && pageNumber <
_cache
.Count)
263
Size pageSize =
_cache
[pageNumber].PageSize;
296
if (pageNumber >= 0 && pageNumber <
_cache
.Count)
298
return
_cache
[pageNumber].Dirty;
380
if (args.Start >=
_cache
.Count)
393
if (args.Start + args.Count <
_cache
.Count)
405
change = DirtyRange(args.Start,
_cache
.Count - args.Start);
411
change = AddRange(
_cache
.Count, args.Count - (
_cache
.Count - args.Start) + 1);
424
if (pageCount <
_cache
.Count)
426
change = new PageCacheChange(pageCount,
_cache
.Count - pageCount, PageCacheChangeType.Remove);
430
_cache
.RemoveRange(pageCount,
_cache
.Count - pageCount);
528
if (args.Start + args.Count >=
_cache
.Count ||
531
adjustedCount =
_cache
.Count - args.Start;
628
if (args.PageNumber >
_cache
.Count - 1)
714
for (int i = 0; i <
_cache
.Count; i++)
716
if (
_cache
[i].Dirty || !dirtyOnly)
766
if (start >=
_cache
.Count)
768
count += (start -
_cache
.Count);
769
start =
_cache
.Count;
779
_cache
.Add(newEntry);
793
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_cache
.Count);
799
if (newEntry.PageSize !=
_cache
[index].PageSize ||
800
newEntry.Dirty !=
_cache
[index].Dirty)
803
_cache
[index] = newEntry;
820
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(start,
_cache
.Count);
822
ArgumentOutOfRangeException.ThrowIfGreaterThan(count,
_cache
.Count - start);
836
_cache
[i] = newEntry;
847
if (
_cache
.Count > 0)
852
PageCacheChange change = new PageCacheChange(0,
_cache
.Count, PageCacheChangeType.Remove);
856
_cache
.Clear();