5 writes to _index
Microsoft.DotNet.HotReload.Client.Tests (5)
ArrayBufferWriter.cs (5)
38
_index
= 0;
55
_index
= 0;
100
_index
= 0;
115
public void ResetWrittenCount() =>
_index
= 0;
137
_index
+= count;
14 references to _index
Microsoft.DotNet.HotReload.Client.Tests (14)
ArrayBufferWriter.cs (14)
61
public ReadOnlyMemory<T> WrittenMemory => _buffer.AsMemory(0,
_index
);
66
public ReadOnlySpan<T> WrittenSpan => _buffer.AsSpan(0,
_index
);
71
public int WrittenCount =>
_index
;
81
public int FreeCapacity => _buffer.Length -
_index
;
98
Debug.Assert(_buffer.Length >=
_index
);
99
_buffer.AsSpan(0,
_index
).Clear();
134
if (
_index
> _buffer.Length - count)
167
Debug.Assert(_buffer.Length >
_index
);
168
return _buffer.AsMemory(
_index
);
174
Debug.Assert(_buffer.Length >
_index
);
175
return new ArraySegment<T>(_buffer,
_index
, _buffer.Length -
_index
);
205
Debug.Assert(_buffer.Length >
_index
);
206
return _buffer.AsSpan(
_index
);