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