1 instantiation of BufferSegment
Microsoft.AspNetCore.HttpLogging (1)
BufferingStream.cs (1)
178
return new
BufferSegment
();
22 references to BufferSegment
Microsoft.AspNetCore.HttpLogging (22)
BufferingStream.cs (9)
17
private
BufferSegment
? _head;
18
private
BufferSegment
? _tail;
135
var
newSegment = AllocateSegment(sizeHint);
156
var
newSegment = AllocateSegment(sizeHint);
164
private
BufferSegment
AllocateSegment(int sizeHint)
166
var
newSegment = CreateSegment();
176
private static
BufferSegment
CreateSegment()
200
var
segment = _head;
203
var
returnSegment = segment;
src\Shared\Buffers\BufferSegment.cs (6)
14
private
BufferSegment
? _next;
40
public
BufferSegment
? NextSegment
100
public void SetNext(
BufferSegment
segment)
117
internal static long GetLength(
BufferSegment
startSegment, int startIndex,
BufferSegment
endSegment, int endIndex)
123
internal static long GetLength(long startPosition,
BufferSegment
endSegment, int endIndex)
src\Shared\Buffers\BufferSegmentStack.cs (7)
23
public bool TryPop([NotNullWhen(true)] out
BufferSegment
? result)
41
public void Push(
BufferSegment
item)
59
private void PushWithResize(
BufferSegment
item)
80
private readonly
BufferSegment
_value;
81
private SegmentAsValueType(
BufferSegment
value) => _value = value;
82
public static implicit operator SegmentAsValueType(
BufferSegment
s) => new SegmentAsValueType(s);
83
public static implicit operator
BufferSegment
(SegmentAsValueType s) => s._value;