1 instantiation of BufferSegment
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (1)
382return new BufferSegment();
26 references to BufferSegment
Microsoft.AspNetCore.Server.Kestrel.Core (26)
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (13)
29private BufferSegment? _head; 30private BufferSegment? _tail; 234BufferSegment? segment = _head; 237BufferSegment returnSegment = segment; 255var segment = _head; 261var returnSegment = segment; 326BufferSegment newSegment = AllocateSegmentUnsynchronized(sizeHint); 347BufferSegment newSegment = AllocateSegmentUnsynchronized(sizeHint); 355private BufferSegment AllocateSegmentUnsynchronized(int minSize) 357BufferSegment newSegment = CreateSegmentUnsynchronized(); 375private BufferSegment CreateSegmentUnsynchronized() 377if (_bufferSegmentPool.TryPop(out var segment)) 385private void ReturnSegmentUnsynchronized(BufferSegment segment)
src\Shared\Buffers\BufferSegment.cs (6)
14private BufferSegment? _next; 40public BufferSegment? NextSegment 100public void SetNext(BufferSegment segment) 117internal static long GetLength(BufferSegment startSegment, int startIndex, BufferSegment endSegment, int endIndex) 123internal static long GetLength(long startPosition, BufferSegment endSegment, int endIndex)
src\Shared\Buffers\BufferSegmentStack.cs (7)
23public bool TryPop([NotNullWhen(true)] out BufferSegment? result) 41public void Push(BufferSegment item) 59private void PushWithResize(BufferSegment item) 80private readonly BufferSegment _value; 81private SegmentAsValueType(BufferSegment value) => _value = value; 82public static implicit operator SegmentAsValueType(BufferSegment s) => new SegmentAsValueType(s); 83public static implicit operator BufferSegment(SegmentAsValueType s) => s._value;