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);
408
Span<byte> buffer =
_writeBuffer
.AvailableSpan;
412
_writeBuffer
.Commit(bytesWritten + 1);
475
_writeBuffer
.EnsureAvailableSpace(2);
476
Span<byte> buffer =
_writeBuffer
.AvailableSpan;
479
_writeBuffer
.Commit(2);
484
_writeBuffer
.EnsureAvailableSpace(bytes.Length);
485
bytes.CopyTo(
_writeBuffer
.AvailableSpan);
486
_writeBuffer
.Commit(bytes.Length);
493
_writeBuffer
.EnsureAvailableSpace(s.Length);
495
OperationStatus status = Ascii.FromUtf16(s,
_writeBuffer
.AvailableSpan, out int bytesWritten);
499
_writeBuffer
.Commit(s.Length);
506
_writeBuffer
.EnsureAvailableSpace(s.Length);
507
Span<byte> buffer =
_writeBuffer
.AvailableSpan;
519
_writeBuffer
.Commit(s.Length);
523
_writeBuffer
.EnsureAvailableSpace(encoding.GetMaxByteCount(s.Length));
524
int length = encoding.GetBytes(s,
_writeBuffer
.AvailableSpan);
525
_writeBuffer
.Commit(length);
1374
Debug.Assert(source.Length <=
_writeBuffer
.AvailableLength);
1375
source.CopyTo(
_writeBuffer
.AvailableSpan);
1376
_writeBuffer
.Commit(source.Length);
1381
int remaining =
_writeBuffer
.AvailableLength;
1390
if (
_writeBuffer
.ActiveLength != 0)
1398
if (source.Length >=
_writeBuffer
.Capacity)
1412
int remaining =
_writeBuffer
.AvailableLength;
1421
if (
_writeBuffer
.ActiveLength != 0)
1433
if (source.Length <=
_writeBuffer
.Capacity)
1454
if (source.Length <=
_writeBuffer
.Capacity)
1467
if (
_writeBuffer
.ActiveLength != 0)
1469
if (source.Length <=
_writeBuffer
.AvailableLength)
1490
if (
_writeBuffer
.ActiveLength == 0)
1497
if (source.Length <=
_writeBuffer
.AvailableLength)
1521
if (value.TryFormat(
_writeBuffer
.AvailableSpan, out int bytesWritten, "X"))
1523
_writeBuffer
.Commit(bytesWritten);
1538
Debug.Assert(
_writeBuffer
.Capacity >= 8);
1547
ReadOnlySpan<byte> bytes =
_writeBuffer
.ActiveSpan;
1550
_writeBuffer
.Discard(bytes.Length);
1557
ReadOnlyMemory<byte> bytes =
_writeBuffer
.ActiveMemory;
1560
_writeBuffer
.Discard(bytes.Length);
2039
Debug.Assert(
_writeBuffer
.ActiveLength == 0, "Everything in write buffer should have been flushed.");