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(); 464if (_sendBuffer.ActiveLength != 0) 510await _stream.WriteAsync(_sendBuffer.ActiveMemory, cancellationToken).ConfigureAwait(false); 513_sendBuffer.Discard(_sendBuffer.ActiveLength); 529await _stream.WriteAsync(_sendBuffer.ActiveMemory, cancellationToken).ConfigureAwait(false); 532_sendBuffer.Discard(_sendBuffer.ActiveLength); 538ReadOnlyMemory<byte> toSend = _sendBuffer.ActiveMemory; 539_sendBuffer.Discard(toSend.Length); 611Debug.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); 688int headersLength = _sendBuffer.ActiveLength - PreHeadersReserveSpace; 690_sendBuffer.Discard(PreHeadersReserveSpace - headersLengthEncodedSize - 1); 693_sendBuffer.ActiveSpan[0] = (byte)Http3FrameType.Headers; 694int actualHeadersLengthEncodedSize = VariableLengthIntegerHelper.WriteInteger(_sendBuffer.ActiveSpan.Slice(1, headersLengthEncodedSize), headersLength); 776while (!QPackEncoder.EncodeStaticIndexedHeaderField(index, _sendBuffer.AvailableSpan, out bytesWritten)) 778_sendBuffer.Grow(); 780_sendBuffer.Commit(bytesWritten); 786while (!QPackEncoder.EncodeLiteralHeaderFieldWithStaticNameReference(nameIndex, value, valueEncoding, _sendBuffer.AvailableSpan, out bytesWritten)) 788_sendBuffer.Grow(); 790_sendBuffer.Commit(bytesWritten); 796while (!QPackEncoder.EncodeLiteralHeaderFieldWithoutNameReference(name, values, separator, valueEncoding, _sendBuffer.AvailableSpan, out bytesWritten)) 798_sendBuffer.Grow(); 800_sendBuffer.Commit(bytesWritten); 806while (!QPackEncoder.EncodeLiteralHeaderFieldWithoutNameReference(name, value, valueEncoding, _sendBuffer.AvailableSpan, out bytesWritten)) 808_sendBuffer.Grow(); 810_sendBuffer.Commit(bytesWritten); 816while (!QPackEncoder.EncodeValueString(values, separator, valueEncoding, _sendBuffer.AvailableSpan, out bytesWritten)) 818_sendBuffer.Grow(); 820_sendBuffer.Commit(bytesWritten); 826while (!Http3Frame.TryWriteFrameEnvelope(frameType, payloadLength, _sendBuffer.AvailableSpan, out bytesWritten)) 828_sendBuffer.Grow(); 830_sendBuffer.Commit(bytesWritten); 835_sendBuffer.EnsureAvailableSpace(span.Length); 836span.CopyTo(_sendBuffer.AvailableSpan); 837_sendBuffer.Commit(span.Length);