1 write to _writeBuffer
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
87_writeBuffer = new ArrayBuffer(InitialWriteBufferSize, usePool: false);
40 references to _writeBuffer
System.Net.Http (40)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (40)
408_writeBuffer.EnsureAvailableSpace(6); 409Span<byte> buffer = _writeBuffer.AvailableSpan; 413_writeBuffer.Commit(bytesWritten + 1); 476_writeBuffer.EnsureAvailableSpace(2); 477Span<byte> buffer = _writeBuffer.AvailableSpan; 480_writeBuffer.Commit(2); 485_writeBuffer.EnsureAvailableSpace(bytes.Length); 486bytes.CopyTo(_writeBuffer.AvailableSpan); 487_writeBuffer.Commit(bytes.Length); 494_writeBuffer.EnsureAvailableSpace(s.Length); 496OperationStatus status = Ascii.FromUtf16(s, _writeBuffer.AvailableSpan, out int bytesWritten); 500_writeBuffer.Commit(bytesWritten); 507_writeBuffer.EnsureAvailableSpace(s.Length); 508Span<byte> buffer = _writeBuffer.AvailableSpan; 520_writeBuffer.Commit(s.Length); 524_writeBuffer.EnsureAvailableSpace(encoding.GetMaxByteCount(s.Length)); 525int length = encoding.GetBytes(s, _writeBuffer.AvailableSpan); 526_writeBuffer.Commit(length); 1379Debug.Assert(source.Length <= _writeBuffer.AvailableLength); 1380source.CopyTo(_writeBuffer.AvailableSpan); 1381_writeBuffer.Commit(source.Length); 1386int remaining = _writeBuffer.AvailableLength; 1395if (_writeBuffer.ActiveLength != 0) 1403if (source.Length >= _writeBuffer.Capacity) 1417int remaining = _writeBuffer.AvailableLength; 1426if (_writeBuffer.ActiveLength != 0) 1438if (source.Length <= _writeBuffer.Capacity) 1459if (source.Length <= _writeBuffer.Capacity) 1472if (_writeBuffer.ActiveLength != 0) 1474if (source.Length <= _writeBuffer.AvailableLength) 1495if (_writeBuffer.ActiveLength == 0) 1502if (source.Length <= _writeBuffer.AvailableLength) 1526if (value.TryFormat(_writeBuffer.AvailableSpan, out int bytesWritten, "X")) 1528_writeBuffer.Commit(bytesWritten); 1543Debug.Assert(_writeBuffer.Capacity >= 8); 1552ReadOnlySpan<byte> bytes = _writeBuffer.ActiveSpan; 1555_writeBuffer.Discard(bytes.Length); 1562ReadOnlyMemory<byte> bytes = _writeBuffer.ActiveMemory; 1565_writeBuffer.Discard(bytes.Length); 2067Debug.Assert(_writeBuffer.ActiveLength == 0, "Everything in write buffer should have been flushed.");