27 references to ActiveSpan
System.Net.Http (27)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (12)
439FrameHeader frameHeader = FrameHeader.ReadFrom(_incomingBuffer.ActiveSpan); 444string response = Encoding.ASCII.GetString(_incomingBuffer.ActiveSpan.Slice(0, Math.Min(20, _incomingBuffer.ActiveLength))); 670GetFrameData(_incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength), frameHeader.PaddedFlag, frameHeader.PriorityFlag), 686_incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength), 754ReadOnlySpan<byte> span = _incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength); 787ReadOnlySpan<byte> frameData = GetFrameData(_incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength), hasPad: frameHeader.PaddedFlag, hasPriority: false); 841ReadOnlySpan<byte> settings = _incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength); 995ReadOnlySpan<byte> pingContent = _incomingBuffer.ActiveSpan.Slice(0, FrameHeader.PingLength); 1020int amount = BinaryPrimitives.ReadInt32BigEndian(_incomingBuffer.ActiveSpan) & 0x7FFFFFFF; 1070var protocolError = (Http2ProtocolErrorCode)BinaryPrimitives.ReadInt32BigEndian(_incomingBuffer.ActiveSpan); 1128int lastStreamId = (int)(BinaryPrimitives.ReadUInt32BigEndian(_incomingBuffer.ActiveSpan) & 0x7FFFFFFF); 1129Http2ProtocolErrorCode errorCode = (Http2ProtocolErrorCode)BinaryPrimitives.ReadInt32BigEndian(_incomingBuffer.ActiveSpan.Slice(sizeof(int)));
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (5)
618switch (buffer.ActiveSpan[0]) 671while (!VariableLengthIntegerHelper.TryRead(buffer.ActiveSpan, out unknownStreamType, out _)) 805while (!Http3Frame.TryReadIntegerPair(buffer.ActiveSpan, out frameType, out payloadLength, out bytesRead)) 838while (!Http3Frame.TryReadIntegerPair(buffer.ActiveSpan, out settingId, out settingValue, out bytesRead)) 889while (!VariableLengthIntegerHelper.TryRead(buffer.ActiveSpan, out firstRejectedStreamId, out bytesRead))
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (6)
721_sendBuffer.ActiveSpan[0] = (byte)Http3FrameType.Headers; 722int actualHeadersLengthEncodedSize = VariableLengthIntegerHelper.WriteInteger(_sendBuffer.ActiveSpan.Slice(1, headersLengthEncodedSize), headersLength); 875while (!Http3Frame.TryReadIntegerPair(_recvBuffer.ActiveSpan, out frameType, out payloadLength, out bytesRead)) 962_headerDecoder.Decode(_recvBuffer.ActiveSpan.Slice(0, processLength), endHeaders, this); 1191_recvBuffer.ActiveSpan.Slice(0, copyLen).CopyTo(buffer); 1263_recvBuffer.ActiveSpan.Slice(0, copyLen).CopyTo(buffer.Span);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (4)
1031Span<byte> buffer = _readBuffer.ActiveSpan; 1133Span<byte> buffer = _readBuffer.ActiveSpan; 1549ReadOnlySpan<byte> bytes = _writeBuffer.ActiveSpan; 1748ReadOnlySpan<byte> available = _readBuffer.ActiveSpan;