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)
35
Debug.Assert(_count -
_indexOffset
> 0);
37
return ref _stack[_count -
_indexOffset
- 1];
138
else if (_count -
_indexOffset
== _stack.Length)
203
_stack[_count -
_indexOffset
] = Current;
216
if (_count++ > 0 ||
_indexOffset
== 0)
218
Current = _stack[_count -
_indexOffset
];
243
if (_count == 1 &&
_indexOffset
> 0)
256
else if (--_count == 0 &&
_indexOffset
> 0)
262
int currentIndex = _count -
_indexOffset
;
270
if (--_count > 0 ||
_indexOffset
== 0)
272
Current = _stack[_count -
_indexOffset
];
406
AppendStackFrame(sb, ref _stack[i -
_indexOffset
]);