1 write to _cache
PresentationFramework (1)
src\Framework\MS\Internal\Documents\PageCache.cs (1)
50
_cache
= new List<PageCacheEntry>(_defaultCacheSize);
33 references to _cache
PresentationFramework (33)
src\Framework\MS\Internal\Documents\PageCache.cs (33)
175
return
_cache
.Count;
268
if (pageNumber >= 0 && pageNumber <
_cache
.Count)
270
Size pageSize =
_cache
[pageNumber].PageSize;
303
if (pageNumber >= 0 && pageNumber <
_cache
.Count)
305
return
_cache
[pageNumber].Dirty;
387
if (args.Start >=
_cache
.Count)
400
if (args.Start + args.Count <
_cache
.Count)
412
change = DirtyRange(args.Start,
_cache
.Count - args.Start);
418
change = AddRange(
_cache
.Count, args.Count - (
_cache
.Count - args.Start) + 1);
431
if (pageCount <
_cache
.Count)
433
change = new PageCacheChange(pageCount,
_cache
.Count - pageCount, PageCacheChangeType.Remove);
437
_cache
.RemoveRange(pageCount,
_cache
.Count - pageCount);
536
if (args.Start + args.Count >=
_cache
.Count ||
539
adjustedCount =
_cache
.Count - args.Start;
637
if (args.PageNumber >
_cache
.Count - 1)
730
for (int i = 0; i <
_cache
.Count; i++)
732
if (
_cache
[i].Dirty || !dirtyOnly)
789
if( start >=
_cache
.Count )
791
count += (start -
_cache
.Count);
792
start =
_cache
.Count;
802
_cache
.Add(newEntry);
816
if (index >=
_cache
.Count || index < 0)
824
if (newEntry.PageSize !=
_cache
[index].PageSize ||
825
newEntry.Dirty !=
_cache
[index].Dirty)
828
_cache
[index] = newEntry;
845
if( start >=
_cache
.Count )
850
if (start + count >
_cache
.Count || count < 1 )
866
_cache
[i] = newEntry;
877
if (
_cache
.Count > 0)
882
PageCacheChange change = new PageCacheChange(0,
_cache
.Count, PageCacheChangeType.Remove);
886
_cache
.Clear();