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)
973
Debug.Assert(
_buffer
!= null);
975
ArrayPool<byte>.Shared.Return(
_buffer
);
981
public ArraySegment<byte> GetBuffer() => new ArraySegment<byte>(
_buffer
, 0, _length);
986
Buffer.BlockCopy(
_buffer
, 0, arr, 0, _length);
996
else if (value >
_buffer
.Length)
1004
Debug.Assert(value >
_buffer
.Length);
1007
byte[] currentBuffer =
_buffer
;
1035
Buffer.BlockCopy(buffer, offset,
_buffer
, _length, count);
1042
buffer.CopyTo(new Span<byte>(
_buffer
, _length, buffer.Length));
1068
_buffer
[_length] = value;