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