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