12 references to Length
Microsoft.Extensions.Caching.Hybrid (12)
Internal\BufferChunk.cs (7)
39
Debug.Assert(
Length
== array.Length, "array length not respected");
49
Debug.Assert(
Length
== length, "length not respected");
54
var length =
Length
;
84
internal ReadOnlySequence<byte> AsSequence() =>
Length
== 0 ? default : new ReadOnlySequence<byte>(Array!, 0,
Length
);
90
Debug.Assert(copy.
Length
==
Length
, "same length expected");
Internal\DefaultHybridCache.L2.cs (1)
82
if (arr.Length != buffer.
Length
)
Internal\DefaultHybridCache.MutableCacheItem.cs (1)
64
size = _buffer.
Length
;
Internal\DefaultHybridCache.StampedeStateT.cs (3)
386
immutable.SetValue(serializer.Deserialize(new(value.Array!, 0, value.
Length
)), value.
Length
);
434
immutable.SetValue(value, size: buffer.
Length
);