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;
29
byte[] toReturn =
_rentedBuffer
;
50
MemoryMarshal.Write(
_rentedBuffer
.AsSpan(_topOfStack), ref row);
55
Debug.Assert(
_rentedBuffer
!= null);
56
Debug.Assert(_topOfStack <=
_rentedBuffer
!.Length - StackRow.Size);
58
StackRow row = MemoryMarshal.Read<StackRow>(
_rentedBuffer
.AsSpan(_topOfStack));
65
byte[] toReturn =
_rentedBuffer
;
71
_rentedBuffer
,
72
_rentedBuffer
.Length - toReturn.Length + _topOfStack,
75
_topOfStack +=
_rentedBuffer
.Length - toReturn.Length;