2 writes to Array
Microsoft.Extensions.Caching.Hybrid (2)
Internal\BufferChunk.cs (2)
30
Array
= array;
46
Array
= array;
10 references to Array
Microsoft.Extensions.Caching.Hybrid (10)
Internal\BufferChunk.cs (4)
61
Buffer.BlockCopy(
Array
!, 0, copy, 0, length);
76
ArrayPool<byte>.Shared.Return(
Array
!);
80
Debug.Assert(
Array
is null && !ReturnToPool, "expected clean slate after recycle");
84
internal ReadOnlySequence<byte> AsSequence() => Length == 0 ? default : new ReadOnlySequence<byte>(
Array
!, 0, Length);
Internal\DefaultHybridCache.L2.cs (2)
77
Debug.Assert(buffer.
Array
is not null, "array should be non-null");
81
var arr = buffer.
Array
!;
Internal\DefaultHybridCache.StampedeStateT.cs (4)
183
if (result.
Array
is not null)
213
if (result.
Array
is not null)
378
Debug.Assert(value.
Array
is not null, "expected buffer");
386
immutable.SetValue(serializer.Deserialize(new(value.
Array
!, 0, value.Length)), value.Length);