1 instantiation of BufferSegment
Microsoft.AspNetCore.HttpLogging (1)
BufferingStream.cs (1)
178return new BufferSegment();
22 references to BufferSegment
Microsoft.AspNetCore.HttpLogging (22)
BufferingStream.cs (9)
17private BufferSegment? _head; 18private BufferSegment? _tail; 135var newSegment = AllocateSegment(sizeHint); 156var newSegment = AllocateSegment(sizeHint); 164private BufferSegment AllocateSegment(int sizeHint) 166var newSegment = CreateSegment(); 176private static BufferSegment CreateSegment() 200var segment = _head; 203var returnSegment = 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;