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)
34
Debug.Assert(_count -
_indexOffset
> 0);
36
return ref _stack[_count -
_indexOffset
- 1];
135
else if (_count -
_indexOffset
== _stack.Length)
200
_stack[_count -
_indexOffset
] = Current;
213
if (_count++ > 0 ||
_indexOffset
== 0)
215
Current = _stack[_count -
_indexOffset
];
240
if (_count == 1 &&
_indexOffset
> 0)
253
else if (--_count == 0 &&
_indexOffset
> 0)
259
int currentIndex = _count -
_indexOffset
;
267
if (--_count > 0 ||
_indexOffset
== 0)
269
Current = _stack[_count -
_indexOffset
];
403
AppendStackFrame(sb, ref _stack[i -
_indexOffset
]);