3 writes to _items
Microsoft.Extensions.Caching.Memory (3)
CacheEntry.ExpirationTokensList.cs (3)
276state._items = items; 308state._items = items; 341_items = items;
27 references to _items
Microsoft.Extensions.Caching.Memory (27)
CacheEntry.ExpirationTokensList.cs (27)
44return new ReadOnlySpan<IChangeToken>(state._items, 0, Volatile.Read(ref state._count)); 66: state._items[index]; 81state._items[index] = value; 86Array.Copy(state._items, items, count); 101state._items[count] = item; 119source.CopyTo(new Span<IChangeToken>(state._items, count, source.Length)); 138if (updatedCount > state._items.Length) 143Array.Copy(state._items, index, state._items, index + 1, count - index); 144state._items[index] = item; 150Array.Copy(state._items, 0, items, 0, index); 152Array.Copy(state._items, index, items, index + 1, count - index); 186Array.Clear(state._items, 0, state._count); 202int index = Array.IndexOf(state._items, item, 0, count); 225return Array.IndexOf(state._items, item, 0, Volatile.Read(ref state._count)); 231Array.Copy(state._items, 0, array, arrayIndex, Volatile.Read(ref state._count)); 237IChangeToken[] items = state._items; 262if (requiredCapacity <= state._items.Length) 267var items = new IChangeToken[GetCapacity(state._items.Length, requiredCapacity)]; 268Array.Copy(state._items, items, count); 306var items = new IChangeToken[GetCapacity(state._items.Length, requiredCapacity)]; 307Array.Copy(state._items, items, state._count); 314Array.Copy(state._items, index + 1, state._items, index, updatedCount - index); 316state._items[updatedCount] = null!; 329Array.Copy(state._items, 0, items, 0, index); 330Array.Copy(state._items, index + 1, items, index, updatedCount - index);