1 write to _sendBuffer
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
73
_sendBuffer
= new ArrayBuffer(initialSize: 64, usePool: true);
41 references to _sendBuffer
System.Net.Http (41)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (41)
133
_sendBuffer
.Dispose();
464
if (
_sendBuffer
.ActiveLength != 0)
510
await _stream.WriteAsync(
_sendBuffer
.ActiveMemory, cancellationToken).ConfigureAwait(false);
513
_sendBuffer
.Discard(
_sendBuffer
.ActiveLength);
529
await _stream.WriteAsync(
_sendBuffer
.ActiveMemory, cancellationToken).ConfigureAwait(false);
532
_sendBuffer
.Discard(
_sendBuffer
.ActiveLength);
538
ReadOnlyMemory<byte> toSend =
_sendBuffer
.ActiveMemory;
539
_sendBuffer
.Discard(toSend.Length);
611
Debug.Assert(
_sendBuffer
.ActiveLength == 0);
614
_sendBuffer
.Commit(PreHeadersReserveSpace);
618
_sendBuffer
.EnsureAvailableSpace(2);
619
_sendBuffer
.AvailableSpan[0] = 0x00; // required insert count.
620
_sendBuffer
.AvailableSpan[1] = 0x00; // s + delta base.
621
_sendBuffer
.Commit(2);
688
int headersLength =
_sendBuffer
.ActiveLength - PreHeadersReserveSpace;
690
_sendBuffer
.Discard(PreHeadersReserveSpace - headersLengthEncodedSize - 1);
693
_sendBuffer
.ActiveSpan[0] = (byte)Http3FrameType.Headers;
694
int actualHeadersLengthEncodedSize = VariableLengthIntegerHelper.WriteInteger(
_sendBuffer
.ActiveSpan.Slice(1, headersLengthEncodedSize), headersLength);
776
while (!QPackEncoder.EncodeStaticIndexedHeaderField(index,
_sendBuffer
.AvailableSpan, out bytesWritten))
778
_sendBuffer
.Grow();
780
_sendBuffer
.Commit(bytesWritten);
786
while (!QPackEncoder.EncodeLiteralHeaderFieldWithStaticNameReference(nameIndex, value, valueEncoding,
_sendBuffer
.AvailableSpan, out bytesWritten))
788
_sendBuffer
.Grow();
790
_sendBuffer
.Commit(bytesWritten);
796
while (!QPackEncoder.EncodeLiteralHeaderFieldWithoutNameReference(name, values, separator, valueEncoding,
_sendBuffer
.AvailableSpan, out bytesWritten))
798
_sendBuffer
.Grow();
800
_sendBuffer
.Commit(bytesWritten);
806
while (!QPackEncoder.EncodeLiteralHeaderFieldWithoutNameReference(name, value, valueEncoding,
_sendBuffer
.AvailableSpan, out bytesWritten))
808
_sendBuffer
.Grow();
810
_sendBuffer
.Commit(bytesWritten);
816
while (!QPackEncoder.EncodeValueString(values, separator, valueEncoding,
_sendBuffer
.AvailableSpan, out bytesWritten))
818
_sendBuffer
.Grow();
820
_sendBuffer
.Commit(bytesWritten);
826
while (!Http3Frame.TryWriteFrameEnvelope(frameType, payloadLength,
_sendBuffer
.AvailableSpan, out bytesWritten))
828
_sendBuffer
.Grow();
830
_sendBuffer
.Commit(bytesWritten);
835
_sendBuffer
.EnsureAvailableSpace(span.Length);
836
span.CopyTo(
_sendBuffer
.AvailableSpan);
837
_sendBuffer
.Commit(span.Length);