34 references to AvailableSpan
System.Net.Http (34)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (14)
211Http2ConnectionPreface.CopyTo(_outgoingBuffer.AvailableSpan); 215FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, 2 * FrameHeader.SettingLength, FrameType.Settings, FrameFlags.None, streamId: 0); 217BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.EnablePush); 219BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, 0); 221BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.InitialWindowSize); 223BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, (uint)_pool.Settings._initialHttp2StreamWindowSize); 231FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, FrameHeader.WindowUpdateLength, FrameType.WindowUpdate, FrameFlags.None, streamId: 0); 233BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, windowUpdateAmount); 1413while (!HPackEncoder.EncodeIndexedHeaderField(index, headerBuffer.AvailableSpan, out bytesWritten)) 1426while (!HPackEncoder.EncodeLiteralHeaderFieldWithoutIndexing(index, value, valueEncoding: null, headerBuffer.AvailableSpan, out bytesWritten)) 1439while (!HPackEncoder.EncodeLiteralHeaderFieldWithoutIndexingNewName(name, values, HttpHeaderParser.DefaultSeparatorBytes, valueEncoding, headerBuffer.AvailableSpan, out bytesWritten)) 1452while (!HPackEncoder.EncodeStringLiterals(values, separator, valueEncoding, headerBuffer.AvailableSpan, out bytesWritten)) 1465while (!HPackEncoder.EncodeStringLiteral(value, valueEncoding, headerBuffer.AvailableSpan, out bytesWritten)) 1478bytes.CopyTo(headerBuffer.AvailableSpan);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (9)
677_sendBuffer.AvailableSpan[0] = 0x00; // required insert count. 678_sendBuffer.AvailableSpan[1] = 0x00; // s + delta base. 834while (!QPackEncoder.EncodeStaticIndexedHeaderField(index, _sendBuffer.AvailableSpan, out bytesWritten)) 844while (!QPackEncoder.EncodeLiteralHeaderFieldWithStaticNameReference(nameIndex, value, valueEncoding, _sendBuffer.AvailableSpan, out bytesWritten)) 854while (!QPackEncoder.EncodeLiteralHeaderFieldWithoutNameReference(name, values, separator, valueEncoding, _sendBuffer.AvailableSpan, out bytesWritten)) 864while (!QPackEncoder.EncodeLiteralHeaderFieldWithoutNameReference(name, value, valueEncoding, _sendBuffer.AvailableSpan, out bytesWritten)) 874while (!QPackEncoder.EncodeValueString(values, separator, valueEncoding, _sendBuffer.AvailableSpan, out bytesWritten)) 884while (!Http3Frame.TryWriteFrameEnvelope(frameType, payloadLength, _sendBuffer.AvailableSpan, out bytesWritten)) 894span.CopyTo(_sendBuffer.AvailableSpan);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (11)
409Span<byte> buffer = _writeBuffer.AvailableSpan; 477Span<byte> buffer = _writeBuffer.AvailableSpan; 486bytes.CopyTo(_writeBuffer.AvailableSpan); 496OperationStatus status = Ascii.FromUtf16(s, _writeBuffer.AvailableSpan, out int bytesWritten); 508Span<byte> buffer = _writeBuffer.AvailableSpan; 525int length = encoding.GetBytes(s, _writeBuffer.AvailableSpan); 1380source.CopyTo(_writeBuffer.AvailableSpan); 1526if (value.TryFormat(_writeBuffer.AvailableSpan, out int bytesWritten, "X")) 1657_stream.Read(_readBuffer.AvailableSpan); 1673_stream.Read(_readBuffer.AvailableSpan); 1841int bytesRead = _stream.Read(_readBuffer.AvailableSpan);