1 instantiation of BufferSegment
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (1)
382
return new
BufferSegment
();
26 references to BufferSegment
Microsoft.AspNetCore.Server.Kestrel.Core (26)
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (13)
29
private
BufferSegment
? _head;
30
private
BufferSegment
? _tail;
234
BufferSegment
? segment = _head;
237
BufferSegment
returnSegment = segment;
255
var
segment = _head;
261
var
returnSegment = segment;
326
BufferSegment
newSegment = AllocateSegmentUnsynchronized(sizeHint);
347
BufferSegment
newSegment = AllocateSegmentUnsynchronized(sizeHint);
355
private
BufferSegment
AllocateSegmentUnsynchronized(int minSize)
357
BufferSegment
newSegment = CreateSegmentUnsynchronized();
375
private
BufferSegment
CreateSegmentUnsynchronized()
377
if (_bufferSegmentPool.TryPop(out
var
segment))
385
private void ReturnSegmentUnsynchronized(
BufferSegment
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;