1 instantiation of RecyclableReadOnlySequenceSegment
Microsoft.AspNetCore.OutputCaching (1)
RecyclableReadOnlySequenceSegment.cs (1)
29var obj = s_Spares.TryDequeue(out var value) ? value : new();
23 references to RecyclableReadOnlySequenceSegment
Microsoft.AspNetCore.OutputCaching (23)
OutputCacheEntry.cs (2)
77Body = RecyclableReadOnlySequenceSegment.CreateSequence(segments); 125=> RecyclableReadOnlySequenceSegment.CopyToAsync(Body, destination, cancellationToken);
OutputCacheEntryFormatter.cs (3)
324RecyclableReadOnlySequenceSegment first = RecyclableReadOnlySequenceSegment.Create(ReadSegment(ref reader), null), last = first; 327last = RecyclableReadOnlySequenceSegment.Create(ReadSegment(ref reader), last);
RecyclableReadOnlySequenceSegment.cs (13)
24public static RecyclableReadOnlySequenceSegment Create(int minimumLength, RecyclableReadOnlySequenceSegment? previous) 27public static RecyclableReadOnlySequenceSegment Create(ReadOnlyMemory<byte> memory, RecyclableReadOnlySequenceSegment? previous) 29var obj = s_Spares.TryDequeue(out var value) ? value : new(); 40static readonly ConcurrentQueue<RecyclableReadOnlySequenceSegment> s_Spares = new(); 42public static void RecycleChain(RecyclableReadOnlySequenceSegment? obj, bool recycleBuffers = false) 49var next = obj.Next as RecyclableReadOnlySequenceSegment; 64var obj = value.Start.GetObject() as RecyclableReadOnlySequenceSegment; 93RecyclableReadOnlySequenceSegment first = Create(segments[0], null), last = first;
RecyclableSequenceBuilder.cs (5)
13private RecyclableReadOnlySequenceSegment? _firstSegment, _currentSegment; 40RecyclableReadOnlySequenceSegment.RecycleChain(_firstSegment, recycleBuffers: false); 57public void Dispose() => RecyclableReadOnlySequenceSegment.RecycleChain(DetachAndReset(), recycleBuffers: true); 69_currentSegment = _firstSegment = RecyclableReadOnlySequenceSegment.Create(_segmentSize, null); 79_currentSegment = RecyclableReadOnlySequenceSegment.Create(_segmentSize, _currentSegment);