4 writes to _buffer
System.Net.Http (4)
System\Net\Http\HttpContent.cs (4)
968_buffer = ArrayPool<byte>.Shared.Rent((int)capacity); 976_buffer = null!; 1008_buffer = null!; 1025_buffer = newBuffer;
10 references to _buffer
System.Net.Http (10)
System\Net\Http\HttpContent.cs (10)
973Debug.Assert(_buffer != null); 975ArrayPool<byte>.Shared.Return(_buffer); 981public ArraySegment<byte> GetBuffer() => new ArraySegment<byte>(_buffer, 0, _length); 986Buffer.BlockCopy(_buffer, 0, arr, 0, _length); 996else if (value > _buffer.Length) 1004Debug.Assert(value > _buffer.Length); 1007byte[] currentBuffer = _buffer; 1035Buffer.BlockCopy(buffer, offset, _buffer, _length, count); 1042buffer.CopyTo(new Span<byte>(_buffer, _length, buffer.Length)); 1068_buffer[_length] = value;