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)
44if (_topOfStack < StackRow.Size) 50MemoryMarshal.Write(_rentedBuffer.AsSpan(_topOfStack), ref row); 56Debug.Assert(_topOfStack <= _rentedBuffer!.Length - StackRow.Size); 58StackRow row = MemoryMarshal.Read<StackRow>(_rentedBuffer.AsSpan(_topOfStack)); 70_topOfStack, 72_rentedBuffer.Length - toReturn.Length + _topOfStack, 73toReturn.Length - _topOfStack);