34 references to AvailableSpan
System.Net.Http (34)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (14)
203Http2ConnectionPreface.CopyTo(_outgoingBuffer.AvailableSpan); 207FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, 2 * FrameHeader.SettingLength, FrameType.Settings, FrameFlags.None, streamId: 0); 209BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.EnablePush); 211BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, 0); 213BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.InitialWindowSize); 215BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, (uint)_pool.Settings._initialHttp2StreamWindowSize); 223FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, FrameHeader.WindowUpdateLength, FrameType.WindowUpdate, FrameFlags.None, streamId: 0); 225BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, windowUpdateAmount); 1355while (!HPackEncoder.EncodeIndexedHeaderField(index, headerBuffer.AvailableSpan, out bytesWritten)) 1368while (!HPackEncoder.EncodeLiteralHeaderFieldWithoutIndexing(index, value, valueEncoding: null, headerBuffer.AvailableSpan, out bytesWritten)) 1381while (!HPackEncoder.EncodeLiteralHeaderFieldWithoutIndexingNewName(name, values, HttpHeaderParser.DefaultSeparatorBytes, valueEncoding, headerBuffer.AvailableSpan, out bytesWritten)) 1394while (!HPackEncoder.EncodeStringLiterals(values, separator, valueEncoding, headerBuffer.AvailableSpan, out bytesWritten)) 1407while (!HPackEncoder.EncodeStringLiteral(value, valueEncoding, headerBuffer.AvailableSpan, out bytesWritten)) 1420bytes.CopyTo(headerBuffer.AvailableSpan);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (9)
633_sendBuffer.AvailableSpan[0] = 0x00; // required insert count. 634_sendBuffer.AvailableSpan[1] = 0x00; // s + delta base. 790while (!QPackEncoder.EncodeStaticIndexedHeaderField(index, _sendBuffer.AvailableSpan, out bytesWritten)) 800while (!QPackEncoder.EncodeLiteralHeaderFieldWithStaticNameReference(nameIndex, value, valueEncoding, _sendBuffer.AvailableSpan, out bytesWritten)) 810while (!QPackEncoder.EncodeLiteralHeaderFieldWithoutNameReference(name, values, separator, valueEncoding, _sendBuffer.AvailableSpan, out bytesWritten)) 820while (!QPackEncoder.EncodeLiteralHeaderFieldWithoutNameReference(name, value, valueEncoding, _sendBuffer.AvailableSpan, out bytesWritten)) 830while (!QPackEncoder.EncodeValueString(values, separator, valueEncoding, _sendBuffer.AvailableSpan, out bytesWritten)) 840while (!Http3Frame.TryWriteFrameEnvelope(frameType, payloadLength, _sendBuffer.AvailableSpan, out bytesWritten)) 850span.CopyTo(_sendBuffer.AvailableSpan);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (11)
408Span<byte> buffer = _writeBuffer.AvailableSpan; 476Span<byte> buffer = _writeBuffer.AvailableSpan; 485bytes.CopyTo(_writeBuffer.AvailableSpan); 495OperationStatus status = Ascii.FromUtf16(s, _writeBuffer.AvailableSpan, out int bytesWritten); 507Span<byte> buffer = _writeBuffer.AvailableSpan; 524int length = encoding.GetBytes(s, _writeBuffer.AvailableSpan); 1377source.CopyTo(_writeBuffer.AvailableSpan); 1523if (value.TryFormat(_writeBuffer.AvailableSpan, out int bytesWritten, "X")) 1632_stream.Read(_readBuffer.AvailableSpan); 1648_stream.Read(_readBuffer.AvailableSpan); 1816int bytesRead = _stream.Read(_readBuffer.AvailableSpan);