1 write to _buffer
Aspire.Hosting (1)
src\Shared\CircularBuffer.cs (1)
36
_buffer
= buffer;
16 references to _buffer
Aspire.Hosting (16)
src\Shared\CircularBuffer.cs (16)
48
public int Count =>
_buffer
.Count;
96
var data = CollectionsMarshal.AsSpan(
_buffer
);
110
if (shiftLength > 0 || internalIndex ==
_buffer
.Count - 1)
116
else if (internalIndex < _end && _end <
_buffer
.Count - 1)
134
if (internalIndex >
_buffer
.Count)
136
internalIndex = internalIndex %
_buffer
.Count;
139
_buffer
.Insert(internalIndex, item);
143
if (_end !=
_buffer
.Count)
156
_buffer
.RemoveAt(internalIndex);
182
return
_buffer
[InternalIndex(index)];
187
_buffer
[InternalIndex(index)] = value;
197
_buffer
[_end] = item;
203
_buffer
.Insert(_end, item);
205
if (_end !=
_buffer
.Count)
216
_buffer
.Clear();
262
return (_start + index) %
_buffer
.Count;