5 writes to _currentDepth
System.Text.Json (5)
System\Text\Json\BitStack.cs (5)
49
_currentDepth
++;
66
_currentDepth
++;
117
_currentDepth
--;
180
_currentDepth
++;
190
_currentDepth
++;
10 references to _currentDepth
System.Text.Json (10)
System\Text\Json\BitStack.cs (10)
33
public readonly int CurrentDepth =>
_currentDepth
;
41
if (
_currentDepth
< AllocationFreeMaxDepth)
58
if (
_currentDepth
< AllocationFreeMaxDepth)
78
int index =
_currentDepth
- AllocationFreeMaxDepth;
119
if (
_currentDepth
< AllocationFreeMaxDepth)
124
else if (
_currentDepth
== AllocationFreeMaxDepth)
143
int index =
_currentDepth
- AllocationFreeMaxDepth - 1;
160
=>
_currentDepth
<= AllocationFreeMaxDepth ? (_allocationFreeContainer & 1) != 0 : PeekInArray();
179
Debug.Assert(
_currentDepth
== 0, "Only call SetFirstBit when depth is 0");
189
Debug.Assert(
_currentDepth
== 0, "Only call ResetFirstBit when depth is 0");