4 writes to _lastBuffer
System.Net.Http (4)
System\Net\Http\HttpContent.cs (4)
820
_lastBuffer
= [];
894
_lastBuffer
= newBuffer;
1035
_lastBuffer
= newBuffer;
1085
_lastBuffer
= null!;
14 references to _lastBuffer
System.Net.Http (14)
System\Net\Http\HttpContent.cs (14)
843
if (!_lastBufferIsPooled && _totalLength ==
_lastBuffer
.Length)
846
return
_lastBuffer
;
865
return
_lastBuffer
;
872
:
_lastBuffer
.AsSpan(0, _totalLength);
880
Debug.Assert(_lastBufferOffset <=
_lastBuffer
.Length);
882
return
_lastBuffer
.AsSpan(0, _totalLength).ToArray();
906
byte[] lastBuffer =
_lastBuffer
;
925
int lastBufferCapacity =
_lastBuffer
.Length;
997
Span<byte> remainingInCurrentBuffer =
_lastBuffer
.AsSpan(_lastBufferOffset);
1032
_pooledBuffers[bufferCount] =
_lastBuffer
;
1060
Debug.Assert(_lastBufferOffset <=
_lastBuffer
.Length);
1063
_lastBuffer
.AsSpan(0, _lastBufferOffset).CopyTo(destination);
1083
Debug.Assert(
_lastBuffer
is not null);
1084
byte[] lastBuffer =
_lastBuffer
;