1 write to _indexOffset
System.Text.Json (1)
System\Text\Json\Serialization\WriteStack.cs (1)
195_indexOffset = 1; // currentIndex := _count - 1;
12 references to _indexOffset
System.Text.Json (12)
System\Text\Json\Serialization\WriteStack.cs (12)
35Debug.Assert(_count - _indexOffset > 0); 37return ref _stack[_count - _indexOffset - 1]; 138else if (_count - _indexOffset == _stack.Length) 203_stack[_count - _indexOffset] = Current; 216if (_count++ > 0 || _indexOffset == 0) 218Current = _stack[_count - _indexOffset]; 243if (_count == 1 && _indexOffset > 0) 256else if (--_count == 0 && _indexOffset > 0) 262int currentIndex = _count - _indexOffset; 270if (--_count > 0 || _indexOffset == 0) 272Current = _stack[_count - _indexOffset]; 406AppendStackFrame(sb, ref _stack[i - _indexOffset]);