4 instantiations of ExpiresEntryRef
System.Runtime.Caching (4)
System\Runtime\Caching\CacheExpires.cs (4)
18
internal static readonly ExpiresEntryRef INVALID = new
ExpiresEntryRef
(0, 0);
341
return new
ExpiresEntryRef
(pageIndex, entryIndex);
424
entries[i]._next = new
ExpiresEntryRef
(pageIndex, i + 1);
658
inFlushHead = new
ExpiresEntryRef
(i, j);
26 references to ExpiresEntryRef
System.Runtime.Caching (26)
System\Runtime\Caching\CacheExpires.cs (23)
16
internal readonly struct ExpiresEntryRef : IEquatable<
ExpiresEntryRef
>
18
internal static readonly
ExpiresEntryRef
INVALID = new ExpiresEntryRef(0, 0);
34
public override bool Equals(object value) => value is
ExpiresEntryRef
other && Equals(other);
36
public bool Equals(
ExpiresEntryRef
other) => _ref == other._ref;
38
public static bool operator ==(
ExpiresEntryRef
r1,
ExpiresEntryRef
r2) => r1.Equals(r2);
39
public static bool operator !=(
ExpiresEntryRef
r1,
ExpiresEntryRef
r2) => !r1.Equals(r2);
55
internal
ExpiresEntryRef
_next;
326
private
ExpiresEntryRef
GetFreeExpiresEntry()
344
private void AddExpiresEntryToFreeList(
ExpiresEntryRef
entryRef)
426
entries[entries.Length - 1]._next =
ExpiresEntryRef
.INVALID;
487
ExpiresEntryRef
newRef = GetFreeExpiresEntry();
511
ExpiresEntryRef
entryRef = cacheEntry.ExpiresEntryRef;
521
ExpiresEntryRef
freeRef = GetFreeExpiresEntry();
545
ExpiresEntryRef
entryRef = cacheEntry.ExpiresEntryRef;
555
cacheEntry.ExpiresEntryRef =
ExpiresEntryRef
.INVALID;
587
ExpiresEntryRef
entryRef = cacheEntry.ExpiresEntryRef;
612
ExpiresEntryRef
inFlushHead =
ExpiresEntryRef
.INVALID;
653
cacheEntry.ExpiresEntryRef =
ExpiresEntryRef
.INVALID;
698
ExpiresEntryRef
current = inFlushHead;
699
ExpiresEntryRef
next;
System\Runtime\Caching\MemoryCacheEntry.cs (3)
22
private
ExpiresEntryRef
_expiresEntryRef;
61
internal
ExpiresEntryRef
ExpiresEntryRef
133
_expiresEntryRef =
ExpiresEntryRef
.INVALID;