1 write to _writeBuffer
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
86_writeBuffer = new ArrayBuffer(InitialWriteBufferSize, usePool: false);
40 references to _writeBuffer
System.Net.Http (40)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (40)
407_writeBuffer.EnsureAvailableSpace(6); 408Span<byte> buffer = _writeBuffer.AvailableSpan; 412_writeBuffer.Commit(bytesWritten + 1); 475_writeBuffer.EnsureAvailableSpace(2); 476Span<byte> buffer = _writeBuffer.AvailableSpan; 479_writeBuffer.Commit(2); 484_writeBuffer.EnsureAvailableSpace(bytes.Length); 485bytes.CopyTo(_writeBuffer.AvailableSpan); 486_writeBuffer.Commit(bytes.Length); 493_writeBuffer.EnsureAvailableSpace(s.Length); 495OperationStatus status = Ascii.FromUtf16(s, _writeBuffer.AvailableSpan, out int bytesWritten); 499_writeBuffer.Commit(s.Length); 506_writeBuffer.EnsureAvailableSpace(s.Length); 507Span<byte> buffer = _writeBuffer.AvailableSpan; 519_writeBuffer.Commit(s.Length); 523_writeBuffer.EnsureAvailableSpace(encoding.GetMaxByteCount(s.Length)); 524int length = encoding.GetBytes(s, _writeBuffer.AvailableSpan); 525_writeBuffer.Commit(length); 1374Debug.Assert(source.Length <= _writeBuffer.AvailableLength); 1375source.CopyTo(_writeBuffer.AvailableSpan); 1376_writeBuffer.Commit(source.Length); 1381int remaining = _writeBuffer.AvailableLength; 1390if (_writeBuffer.ActiveLength != 0) 1398if (source.Length >= _writeBuffer.Capacity) 1412int remaining = _writeBuffer.AvailableLength; 1421if (_writeBuffer.ActiveLength != 0) 1433if (source.Length <= _writeBuffer.Capacity) 1454if (source.Length <= _writeBuffer.Capacity) 1467if (_writeBuffer.ActiveLength != 0) 1469if (source.Length <= _writeBuffer.AvailableLength) 1490if (_writeBuffer.ActiveLength == 0) 1497if (source.Length <= _writeBuffer.AvailableLength) 1521if (value.TryFormat(_writeBuffer.AvailableSpan, out int bytesWritten, "X")) 1523_writeBuffer.Commit(bytesWritten); 1538Debug.Assert(_writeBuffer.Capacity >= 8); 1547ReadOnlySpan<byte> bytes = _writeBuffer.ActiveSpan; 1550_writeBuffer.Discard(bytes.Length); 1557ReadOnlyMemory<byte> bytes = _writeBuffer.ActiveMemory; 1560_writeBuffer.Discard(bytes.Length); 2039Debug.Assert(_writeBuffer.ActiveLength == 0, "Everything in write buffer should have been flushed.");