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