6 writes to _memoryUsed
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (6)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (6)
66
writer.
_memoryUsed
= 0;
101
_memoryUsed
++;
128
_memoryUsed
+= bytesUsed;
163
_memoryUsed
= 0;
190
_memoryUsed
+= bytesUsed;
200
_memoryUsed
= 0;
10 references to _memoryUsed
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (10)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (10)
100
_memory.Span[
_memoryUsed
] = (byte)value;
144
return _memory.Span.Slice(
_memoryUsed
, _memory.Length -
_memoryUsed
);
153
var remaining = _memory.Length -
_memoryUsed
;
157
if (
_memoryUsed
> 0)
159
_bufferWriter!.Advance(
_memoryUsed
);
196
if (
_memoryUsed
> 0)
198
_bufferWriter!.Advance(
_memoryUsed
);
199
_memory = _memory.Slice(
_memoryUsed
, _memory.Length -
_memoryUsed
);