1 instantiation of RecyclableArrayBufferWriter
Microsoft.Extensions.Caching.Hybrid (1)
Internal\RecyclableArrayBufferWriter.cs (1)
52var obj = Interlocked.Exchange(ref _spare, null) ?? new();
8 references to RecyclableArrayBufferWriter
Microsoft.Extensions.Caching.Hybrid (8)
Internal\DefaultHybridCache.L2.cs (3)
37RecyclableArrayBufferWriter<byte> writer = RecyclableArrayBufferWriter<byte>.Create(MaximumPayloadBytes); 60static async Task<BufferChunk> AwaitedBuffersAsync(ValueTask<bool> pending, RecyclableArrayBufferWriter<byte> writer)
Internal\DefaultHybridCache.StampedeStateT.cs (2)
205RecyclableArrayBufferWriter<byte> writer = RecyclableArrayBufferWriter<byte>.Create(MaximumPayloadBytes); // note this lifetime spans the SetL2Async
Internal\RecyclableArrayBufferWriter.cs (3)
49private static RecyclableArrayBufferWriter<T>? _spare; 50public static RecyclableArrayBufferWriter<T> Create(int maxLength) 52var obj = Interlocked.Exchange(ref _spare, null) ?? new();