34 references to AvailableSpan
System.Net.Http (34)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (14)
204Http2ConnectionPreface.CopyTo(_outgoingBuffer.AvailableSpan); 208FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, 2 * FrameHeader.SettingLength, FrameType.Settings, FrameFlags.None, streamId: 0); 210BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.EnablePush); 212BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, 0); 214BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.InitialWindowSize); 216BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, (uint)_pool.Settings._initialHttp2StreamWindowSize); 224FrameHeader.WriteTo(_outgoingBuffer.AvailableSpan, FrameHeader.WindowUpdateLength, FrameType.WindowUpdate, FrameFlags.None, streamId: 0); 226BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, windowUpdateAmount); 1358while (!HPackEncoder.EncodeIndexedHeaderField(index, headerBuffer.AvailableSpan, out bytesWritten)) 1371while (!HPackEncoder.EncodeLiteralHeaderFieldWithoutIndexing(index, value, valueEncoding: null, headerBuffer.AvailableSpan, out bytesWritten)) 1384while (!HPackEncoder.EncodeLiteralHeaderFieldWithoutIndexingNewName(name, values, HttpHeaderParser.DefaultSeparatorBytes, valueEncoding, headerBuffer.AvailableSpan, out bytesWritten)) 1397while (!HPackEncoder.EncodeStringLiterals(values, separator, valueEncoding, headerBuffer.AvailableSpan, out bytesWritten)) 1410while (!HPackEncoder.EncodeStringLiteral(value, valueEncoding, headerBuffer.AvailableSpan, out bytesWritten)) 1423bytes.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)
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);