2 instantiations of StackRow
System.Text.Json (2)
System\Text\Json\Document\JsonDocument.cs (2)
980
var row = new
StackRow
(arrayItemsOrPropertyCount, numberOfRowsForMembers + 1);
1011
var row = new
StackRow
(arrayItemsOrPropertyCount, numberOfRowsForValues + 1);
14 references to StackRow
System.Text.Json (14)
System\Text\Json\Document\JsonDocument.cs (4)
980
var
row = new StackRow(arrayItemsOrPropertyCount, numberOfRowsForMembers + 1);
998
StackRow
row = stack.Pop();
1011
var
row = new StackRow(arrayItemsOrPropertyCount, numberOfRowsForValues + 1);
1044
StackRow
row = stack.Pop();
System\Text\Json\Document\JsonDocument.Parse.cs (2)
704
var stack = new StackRowStack(JsonDocumentOptions.DefaultMaxDepth *
StackRow
.Size);
747
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;