dotnext by

<PackageReference Include="dotnext" Version="5.16.1" />

Error reading package

System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
   at FuGetGallery.Entry.OpenAsync() in /home/runner/work/FuGetGallery/FuGetGallery/Data/PackageData.cs:line 86
   at FuGetGallery.Entry.Open() in /home/runner/work/FuGetGallery/FuGetGallery/Data/PackageData.cs:line 33
   at FuGetGallery.PackageData.ReadNuspec(Entry entry) in /home/runner/work/FuGetGallery/FuGetGallery/Data/PackageData.cs:line 372
   at FuGetGallery.PackageData.ReadAsync(HttpClient httpClient, String packageUri) in /home/runner/work/FuGetGallery/FuGetGallery/Data/PackageData.cs:line 365
   at FuGetGallery.PackageData.PackageDataCache.ReadPackageFromUrl(PackageData package, HttpClient httpClient, CancellationToken token) in /home/runner/work/FuGetGallery/FuGetGallery/Data/PackageData.cs:line 600
   at FuGetGallery.PackageData.PackageDataCache.GetValueAsync(String arg0, PackageVersion arg1, HttpClient httpClient, CancellationToken token) in /home/runner/work/FuGetGallery/FuGetGallery/Data/PackageData.cs:line 576

 SparseBufferWriter<T>

Represents builder of the sparse memory buffer.
public struct Enumerator<T> : IEnumerator<Enumerator<T>, ReadOnlyMemory<T>>

Represents enumerator over memory segments.

public SequencePosition End { get; }

Gets the current write position within the buffer.

public bool IsSingleSegment { get; }

Gets a value indicating that this buffer consists of a single segment.

public SequencePosition Start { get; }

Gets the position of the first chunk of data within the buffer.

public long WrittenCount { get; }

Gets the number of written elements.

public SparseBufferWriter(int chunkSize, SparseBufferGrowth growth = 0, MemoryAllocator<T> allocator = null)

Initializes a new builder with the specified size of memory block.

Initializes a new builder with automatically selected chunk size.

Initializes a new builder which uses Shared as a default allocator of buffers.

public void Add(T item)

Adds a single item to the buffer.

public void Clear()

Clears internal buffers so this builder can be reused.

public void CopyTo<TConsumer>(TConsumer consumer) where TConsumer : IReadOnlySpanConsumer<T>

Passes the contents of this builder to the consumer.

public void CopyTo<TArg>(ReadOnlySpanAction<T, TArg> writer, TArg arg)

Passes the contents of this builder to the callback.

public int CopyTo(Span<T> output)

Copies the contents of this builder to the specified memory block.

public int CopyTo(Span<T> output, ref SequencePosition position)

Copies the elements from this buffer to the destination location, starting at the specified position, and advances the position.

public void CopyTo<TConsumer>(TConsumer consumer, SequencePosition start) where TConsumer : IReadOnlySpanConsumer<T>

Passes the elements from this buffer to the specified consumer, starting at the specified position.

public long CopyTo<TConsumer>(TConsumer consumer, ref SequencePosition position, long count) where TConsumer : IReadOnlySpanConsumer<T>

Passes the elements from this buffer to the specified consumer, starting at the specified position, and advances the position.

Gets enumerator over memory segments.

public SequencePosition GetPosition(long offset, SequencePosition origin = default)

Returns a position at an offset from the specified position within this buffer.

public ReadOnlySequence<T> Read(ref SequencePosition position, long count)

Reads the data from this buffer, and advances the position to the specified number of elements.

public bool TryGetWrittenContent(out ReadOnlyMemory segment)

Attempts to get the underlying buffer if it is presented by a single segment.

public void Write(ReadOnlySpan<T> input)

Writes the block of memory to this builder.

public void Write(ReadOnlyMemory<T> input, bool copyMemory = true)

Writes the block of memory to this builder.

public void Write(ref ReadOnlySequence sequence, bool copyMemory = true)

Writes a sequence of memory blocks to this builder.