1 write to _indexOffset
System.Text.Json (1)
System\Text\Json\Serialization\WriteStack.cs (1)
192_indexOffset = 1; // currentIndex := _count - 1;
12 references to _indexOffset
System.Text.Json (12)
System\Text\Json\Serialization\WriteStack.cs (12)
34Debug.Assert(_count - _indexOffset > 0); 36return ref _stack[_count - _indexOffset - 1]; 135else if (_count - _indexOffset == _stack.Length) 200_stack[_count - _indexOffset] = Current; 213if (_count++ > 0 || _indexOffset == 0) 215Current = _stack[_count - _indexOffset]; 240if (_count == 1 && _indexOffset > 0) 253else if (--_count == 0 && _indexOffset > 0) 259int currentIndex = _count - _indexOffset; 267if (--_count > 0 || _indexOffset == 0) 269Current = _stack[_count - _indexOffset]; 403AppendStackFrame(sb, ref _stack[i - _indexOffset]);