3 writes to _length
System.Net.Http (3)
System\Net\Http\HttpContent.cs (3)
1036_length += count; 1043_length += buffer.Length; 1069_length = newLength;
11 references to _length
System.Net.Http (11)
System\Net\Http\HttpContent.cs (11)
981public ArraySegment<byte> GetBuffer() => new ArraySegment<byte>(_buffer, 0, _length); 985var arr = new byte[_length]; 986Buffer.BlockCopy(_buffer, 0, arr, 0, _length); 1023Buffer.BlockCopy(currentBuffer, 0, newBuffer, 0, _length); 1034EnsureCapacity(_length + count); 1035Buffer.BlockCopy(buffer, offset, _buffer, _length, count); 1041EnsureCapacity(_length + buffer.Length); 1042buffer.CopyTo(new Span<byte>(_buffer, _length, buffer.Length)); 1066int newLength = _length + 1; 1068_buffer[_length] = value; 1075public override long Length => _length;