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)
843if (!_lastBufferIsPooled && _totalLength == _lastBuffer.Length) 846return _lastBuffer; 865return _lastBuffer; 872: _lastBuffer.AsSpan(0, _totalLength); 880Debug.Assert(_lastBufferOffset <= _lastBuffer.Length); 882return _lastBuffer.AsSpan(0, _totalLength).ToArray(); 906byte[] lastBuffer = _lastBuffer; 925int lastBufferCapacity = _lastBuffer.Length; 997Span<byte> remainingInCurrentBuffer = _lastBuffer.AsSpan(_lastBufferOffset); 1032_pooledBuffers[bufferCount] = _lastBuffer; 1060Debug.Assert(_lastBufferOffset <= _lastBuffer.Length); 1063_lastBuffer.AsSpan(0, _lastBufferOffset).CopyTo(destination); 1083Debug.Assert(_lastBuffer is not null); 1084byte[] lastBuffer = _lastBuffer;