2 instantiations of StackRow
System.Text.Json (2)
System\Text\Json\Document\JsonDocument.cs (2)
977
var row = new
StackRow
(arrayItemsOrPropertyCount, numberOfRowsForMembers + 1);
1008
var row = new
StackRow
(arrayItemsOrPropertyCount, numberOfRowsForValues + 1);
14 references to StackRow
System.Text.Json (14)
System\Text\Json\Document\JsonDocument.cs (4)
977
var
row = new StackRow(arrayItemsOrPropertyCount, numberOfRowsForMembers + 1);
995
StackRow
row = stack.Pop();
1008
var
row = new StackRow(arrayItemsOrPropertyCount, numberOfRowsForValues + 1);
1041
StackRow
row = stack.Pop();
System\Text\Json\Document\JsonDocument.Parse.cs (2)
695
var stack = new StackRowStack(JsonDocumentOptions.DefaultMaxDepth *
StackRow
.Size);
738
var stack = new StackRowStack(JsonDocumentOptions.DefaultMaxDepth *
StackRow
.Size);
System\Text\Json\Document\JsonDocument.StackRowStack.cs (8)
42
internal void Push(
StackRow
row)
44
if (_topOfStack <
StackRow
.Size)
49
_topOfStack -=
StackRow
.Size;
53
internal
StackRow
Pop()
56
Debug.Assert(_topOfStack <= _rentedBuffer!.Length -
StackRow
.Size);
58
StackRow
row = MemoryMarshal.Read<
StackRow
>(_rentedBuffer.AsSpan(_topOfStack));
59
_topOfStack +=
StackRow
.Size;