Soenneker.Streams.Prefixed 4.0.28

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Streams.Prefixed --version 4.0.28
                    
NuGet\Install-Package Soenneker.Streams.Prefixed -Version 4.0.28
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Streams.Prefixed" Version="4.0.28" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Streams.Prefixed" Version="4.0.28" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Streams.Prefixed" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Streams.Prefixed --version 4.0.28
                    
#r "nuget: Soenneker.Streams.Prefixed, 4.0.28"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Streams.Prefixed@4.0.28
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Streams.Prefixed&version=4.0.28
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Streams.Prefixed&version=4.0.28
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Streams.Prefixed

Stream wrapper that replays a prefetched head buffer first, then continues with the underlying stream. Owns the head buffer (returns it to ArrayPool on Dispose).

Install

dotnet add package Soenneker.Streams.Prefixed

What you get

  • PrefixedStream — Stream wrapper that replays a prefetched head buffer first, then continues with the underlying stream. Owns the head buffer (returns it to ArrayPool on Dispose).

API at a glance

API What it does Result / important behavior
PrefixedStream.CanRead Gets or sets a value indicating whether read is allowed. Gets or sets a value indicating whether read is allowed.
PrefixedStream.CanSeek Gets or sets a value indicating whether seek is allowed. Gets or sets a value indicating whether seek is allowed.
PrefixedStream.CanWrite Gets or sets a value indicating whether write is allowed. Gets or sets a value indicating whether write is allowed.
PrefixedStream.Length Gets or sets length. Gets or sets length.
PrefixedStream.Position Gets or sets position. Gets or sets position.
PrefixedStream.Read(buffer, offset, count) Executes the read operation. The result of the operation.
PrefixedStream.ReadAsync(buffer, cancellationToken) Reads async. A task containing the result of the operation.
PrefixedStream.ReadAsync(buffer, offset, count, cancellationToken) Reads async. A task containing the result of the operation.
PrefixedStream.DisposeAsync() Asynchronously releases resources used by the current instance. A task that represents the asynchronous operation.
PrefixedStream.Seek(offset, origin) Executes the seek operation. The result of the operation.

Practical notes

  • Cancellation stops pending work; it does not undo work that has already completed.
  • Dispose instances you own when their scope ends so held resources can be released.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Streams.Prefixed:

Package Downloads
Soenneker.Extensions.HttpResponseMessage

A collection of helpful HttpResponseMessage extension methods

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.34 0 9/12/2026
4.0.32 4,074 9/7/2026
4.0.31 407 9/7/2026
4.0.30 7,079 8/31/2026
4.0.29 868 8/30/2026
4.0.28 1,115 8/30/2026
4.0.27 168 8/29/2026
4.0.26 15,958 7/28/2026
4.0.25 929 7/27/2026
4.0.24 6,001 7/16/2026
4.0.23 962 7/16/2026
4.0.22 9,609 6/19/2026
4.0.21 278 6/18/2026
4.0.20 9,586 6/5/2026
4.0.17 12,343 4/23/2026
4.0.16 11,595 3/13/2026
4.0.12 205 3/12/2026
4.0.10 4,294 3/11/2026
4.0.9 215 3/10/2026
4.0.8 3,195 3/10/2026
Loading failed

Update dependency Soenneker.Extensions.ValueTask to 4.0.119 (#195)