5 writes to _topOfStack
System.Text.Json (5)
System\Text\Json\Document\JsonDocument.StackRowStack.cs (5)
24
_topOfStack
= _rentedBuffer.Length;
31
_topOfStack
= 0;
49
_topOfStack
-= StackRow.Size;
59
_topOfStack
+= StackRow.Size;
75
_topOfStack
+= _rentedBuffer.Length - toReturn.Length;
7 references to _topOfStack
System.Text.Json (7)
System\Text\Json\Document\JsonDocument.StackRowStack.cs (7)
44
if (
_topOfStack
< StackRow.Size)
50
MemoryMarshal.Write(_rentedBuffer.AsSpan(
_topOfStack
), ref row);
56
Debug.Assert(
_topOfStack
<= _rentedBuffer!.Length - StackRow.Size);
58
StackRow row = MemoryMarshal.Read<StackRow>(_rentedBuffer.AsSpan(
_topOfStack
));
70
_topOfStack
,
72
_rentedBuffer.Length - toReturn.Length +
_topOfStack
,
73
toReturn.Length -
_topOfStack
);