1 write to _cache
PresentationFramework (1)
MS\Internal\Documents\PageCache.cs (1)
39
_cache
= new List<PageCacheEntry>(_defaultCacheSize);
33 references to _cache
PresentationFramework (33)
MS\Internal\Documents\PageCache.cs (33)
164
return
_cache
.Count;
257
if (pageNumber >= 0 && pageNumber <
_cache
.Count)
259
Size pageSize =
_cache
[pageNumber].PageSize;
292
if (pageNumber >= 0 && pageNumber <
_cache
.Count)
294
return
_cache
[pageNumber].Dirty;
376
if (args.Start >=
_cache
.Count)
389
if (args.Start + args.Count <
_cache
.Count)
401
change = DirtyRange(args.Start,
_cache
.Count - args.Start);
407
change = AddRange(
_cache
.Count, args.Count - (
_cache
.Count - args.Start) + 1);
420
if (pageCount <
_cache
.Count)
422
change = new PageCacheChange(pageCount,
_cache
.Count - pageCount, PageCacheChangeType.Remove);
426
_cache
.RemoveRange(pageCount,
_cache
.Count - pageCount);
524
if (args.Start + args.Count >=
_cache
.Count ||
527
adjustedCount =
_cache
.Count - args.Start;
624
if (args.PageNumber >
_cache
.Count - 1)
710
for (int i = 0; i <
_cache
.Count; i++)
712
if (
_cache
[i].Dirty || !dirtyOnly)
762
if (start >=
_cache
.Count)
764
count += (start -
_cache
.Count);
765
start =
_cache
.Count;
775
_cache
.Add(newEntry);
789
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_cache
.Count);
795
if (newEntry.PageSize !=
_cache
[index].PageSize ||
796
newEntry.Dirty !=
_cache
[index].Dirty)
799
_cache
[index] = newEntry;
816
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(start,
_cache
.Count);
818
ArgumentOutOfRangeException.ThrowIfGreaterThan(count,
_cache
.Count - start);
832
_cache
[i] = newEntry;
843
if (
_cache
.Count > 0)
848
PageCacheChange change = new PageCacheChange(0,
_cache
.Count, PageCacheChangeType.Remove);
852
_cache
.Clear();