3 writes to _rentedBuffer
System.Text.Json (3)
System\Text\Json\Document\JsonDocument.StackRowStack.cs (3)
23_rentedBuffer = ArrayPool<byte>.Shared.Rent(initialSize); 30_rentedBuffer = null!; 66_rentedBuffer = ArrayPool<byte>.Shared.Rent(toReturn.Length * 2);
10 references to _rentedBuffer
System.Text.Json (10)
System\Text\Json\Document\JsonDocument.StackRowStack.cs (10)
24_topOfStack = _rentedBuffer.Length; 29byte[] toReturn = _rentedBuffer; 50MemoryMarshal.Write(_rentedBuffer.AsSpan(_topOfStack), ref row); 55Debug.Assert(_rentedBuffer != null); 56Debug.Assert(_topOfStack <= _rentedBuffer!.Length - StackRow.Size); 58StackRow row = MemoryMarshal.Read<StackRow>(_rentedBuffer.AsSpan(_topOfStack)); 65byte[] toReturn = _rentedBuffer; 71_rentedBuffer, 72_rentedBuffer.Length - toReturn.Length + _topOfStack, 75_topOfStack += _rentedBuffer.Length - toReturn.Length;