Nerdbank.Streams
2.11.79
Prefix Reserved
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
dotnet add package Nerdbank.Streams --version 2.11.79
NuGet\Install-Package Nerdbank.Streams -Version 2.11.79
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="Nerdbank.Streams" Version="2.11.79" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nerdbank.Streams --version 2.11.79
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Nerdbank.Streams, 2.11.79"
#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.
// Install Nerdbank.Streams as a Cake Addin #addin nuget:?package=Nerdbank.Streams&version=2.11.79 // Install Nerdbank.Streams as a Cake Tool #tool nuget:?package=Nerdbank.Streams&version=2.11.79
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Specialized .NET Stream classes
Enhanced streams for communication in-proc or across the Internet.
Features
SimplexStream
is meant to allow two parties to communicate one direction. Anything written to the stream can subsequently be read from it. You can share thisStream
with any two parties (in the same AppDomain) and one can send messages to the other.FullDuplexStream
creates a pair of bidirectional streams for in-proc two-way communication; it also creates a single bidirectional stream from two unidirectional streams.MultiplexingStream
allows you to split any bidirectional .NET Stream into many sub-streams (called channels). This allows two parties to establish just one transport stream (e.g. named pipe or web socket) and use it for many independent protocols. For example, one might set up JSON-RPC on one channel and use other channels for efficient binary transfers.AsStream()
wraps aWebSocket
,System.IO.Pipelines.PipeReader
,System.IO.Pipelines.PipeWriter
, orSystem.IO.Pipelines.IDuplexPipe
with aSystem.IO.Stream
for reading and/or writing.UsePipe()
enables reading from and writing to aStream
orWebSocket
using thePipeReader
andPipeWriter
APIs.Stream.ReadSlice(long)
creates a sub-stream that ends after a given number of bytes.PipeReader.ReadSlice(long)
creates a sub-PipeReader
that ends after a given number of bytes.MonitoringStream
wraps another Stream and raises events for all I/O calls so you can monitor and/or trace the data as it goes by.WriteSubstream
andReadSubstream
allow you to serialize data of an unknown length as part of a larger stream, and later deserialize it such in reading the substream, you cannot read more bytes than were written to it.Sequence<T>
is a builder forReadOnlySequence<T>
.PrefixingBufferWriter<T>
wraps anotherIBufferWriter<T>
to allow for prefixing some header to the next written buffer, which may be arbitrarily long.BufferTextWriter
is aTextWriter
-derived type that can write directly to anyIBufferWriter<byte>
, making it more reusable thanStreamWriter
and thus allows for alloc-free writing across many writers.SequenceTextReader
is aTextReader
-derived type that can read directly from anyReadOnlySequence<byte>
, making it more reusable thanStreamReader
and thus allows for alloc-free reading across many sequences.DuplexPipe
is a trivial implementation ofIDuplexPipe
.Stream.ReadBlockAsync
guarantees to fill the supplied buffer except under certain documented conditions, instead of the regularReadAsync
guarantee of supplying at least 1 byte.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
- Microsoft.VisualStudio.Threading (>= 17.10.48)
- Microsoft.VisualStudio.Validation (>= 17.8.8)
- System.IO.Pipelines (>= 8.0.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.0.0)
-
.NETStandard 2.1
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
- Microsoft.VisualStudio.Threading (>= 17.10.48)
- Microsoft.VisualStudio.Validation (>= 17.8.8)
- System.IO.Pipelines (>= 8.0.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.0.0)
-
net6.0
- Microsoft.VisualStudio.Threading (>= 17.10.48)
- Microsoft.VisualStudio.Validation (>= 17.8.8)
- System.IO.Pipelines (>= 8.0.0)
NuGet packages (36)
Showing the top 5 NuGet packages that depend on Nerdbank.Streams:
Package | Downloads |
---|---|
Microsoft.VisualStudio.Utilities
A member of the Visual Studio SDK |
|
StreamJsonRpc
A cross-platform .NETStandard library that implements the JSON-RPC wire protocol and can use System.IO.Stream, System.IO.Pipelines or WebSocket so you can use it with any transport. |
|
Microsoft.VisualStudio.Shell.Framework
A member of the Visual Studio SDK |
|
Microsoft.VisualStudio.Imaging
A member of the Visual Studio SDK |
|
Microsoft.VisualStudio.Shell.15.0
A member of the Visual Studio SDK |
GitHub repositories (23)
Showing the top 5 popular GitHub repositories that depend on Nerdbank.Streams:
Repository | Stars |
---|---|
dotnet/roslyn
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
|
|
MessagePack-CSharp/MessagePack-CSharp
Extremely Fast MessagePack Serializer for C#(.NET, .NET Core, Unity, Xamarin). / msgpack.org[C#]
|
|
BililiveRecorder/BililiveRecorder
录播姬 | mikufans 生放送录制
|
|
dotnet/interactive
.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
|
|
roslynpad/roslynpad
A cross-platform C# editor based on Roslyn and AvalonEdit
|
Version | Downloads | Last updated |
---|---|---|
2.11.79 | 41,266 | 8/23/2024 |
2.11.74 | 166,201 | 5/6/2024 |
2.11.72 | 7,051 | 4/29/2024 |
2.10.72 | 90,657 | 10/3/2023 |
2.10.69 | 766,072 | 6/21/2023 |
2.10.66 | 121,198 | 6/7/2023 |
2.10.37-alpha | 710 | 1/10/2023 |
2.10.22-alpha | 292 | 12/21/2022 |
2.9.116 | 2,788 | 6/7/2023 |
2.9.112 | 586,416 | 9/28/2022 |
2.9.109 | 170,846 | 9/26/2022 |
2.9.91-alpha | 1,365 | 7/22/2022 |
2.9.87-alpha | 36,497 | 7/2/2022 |
2.9.71-alpha | 367 | 6/1/2022 |
2.9.47-alpha | 968 | 1/20/2022 |
2.9.45-alpha | 766 | 1/11/2022 |
2.8.65 | 3,216 | 9/5/2022 |
2.8.61 | 172,739 | 7/2/2022 |
2.8.57 | 1,219,791 | 1/24/2022 |
2.8.54 | 99,405 | 11/18/2021 |
2.8.50 | 4,935 | 11/2/2021 |
2.8.46 | 54,096 | 7/29/2021 |
2.8.22-alpha | 735 | 5/20/2021 |
2.7.74 | 74,288 | 4/26/2021 |
2.7.62-alpha | 397 | 3/30/2021 |
2.6.81 | 2,398,442 | 10/2/2020 |
2.6.78 | 12,040 | 9/21/2020 |
2.6.77 | 222,701 | 9/19/2020 |
2.6.37-alpha | 10,131 | 7/30/2020 |
2.5.76 | 221,321 | 7/30/2020 |
2.5.72 | 2,709 | 7/21/2020 |
2.5.70 | 33,799 | 7/14/2020 |
2.5.65 | 4,667 | 7/9/2020 |
2.5.60 | 7,423 | 5/9/2020 |
2.5.58 | 45,368 | 5/8/2020 |
2.5.57-alpha | 694 | 4/24/2020 |
2.5.50-alpha | 1,089 | 3/26/2020 |
2.5.19-alpha | 653 | 12/9/2019 |
2.4.73 | 148,469 | 4/24/2020 |
2.4.67 | 1,480 | 4/15/2020 |
2.4.60 | 225,116 | 2/24/2020 |
2.4.59 | 1,195 | 2/16/2020 |
2.4.57 | 125,101 | 2/9/2020 |
2.4.50 | 5,359 | 12/9/2019 |
2.4.48 | 11,697 | 11/16/2019 |
2.4.46 | 100,318 | 11/6/2019 |
2.4.37 | 2,983 | 10/3/2019 |
2.4.32 | 206,780 | 10/2/2019 |
2.4.30-alpha | 545 | 9/26/2019 |
2.4.27-alpha | 560 | 9/23/2019 |
2.4.20-alpha | 546 | 9/22/2019 |
2.4.12-alpha | 1,918 | 9/21/2019 |
2.3.32 | 48,384 | 9/7/2019 |
2.3.30 | 742 | 9/7/2019 |
2.3.26 | 130,227 | 8/2/2019 |
2.3.25-alpha | 3,282 | 7/31/2019 |
2.3.23-alpha | 604 | 7/31/2019 |
2.3.21-alpha | 562 | 7/31/2019 |
2.3.18-alpha | 585 | 7/29/2019 |
2.2.43 | 2,440 | 7/31/2019 |
2.2.42 | 1,353 | 7/16/2019 |
2.2.38 | 3,732 | 7/7/2019 |
2.2.26 | 79,481 | 6/2/2019 |
2.2.24-rc | 596 | 6/2/2019 |
2.2.5-alpha | 635 | 5/20/2019 |
2.1.37 | 306,362 | 3/29/2019 |
2.1.28-beta | 13,973 | 3/21/2019 |
2.1.23-beta | 550 | 3/18/2019 |
2.1.11-alpha | 740 | 3/10/2019 |
2.1.9-alpha | 552 | 3/9/2019 |
2.1.6-alpha | 585 | 3/8/2019 |
2.1.4-alpha | 589 | 3/7/2019 |
2.1.2-alpha | 987 | 2/12/2019 |
2.0.228 | 1,000 | 3/21/2019 |
2.0.225 | 4,208 | 3/9/2019 |
2.0.214 | 23,987 | 1/27/2019 |
2.0.206 | 28,857 | 12/15/2018 |
2.0.202-rc | 677 | 12/14/2018 |
2.0.198-beta | 86,593 | 11/28/2018 |
2.0.188-beta | 22,298 | 9/25/2018 |
2.0.165-beta | 982 | 9/15/2018 |
2.0.163-beta | 773 | 9/9/2018 |
2.0.152-beta | 730 | 9/1/2018 |
2.0.112-rc | 1,683 | 8/26/2018 |
2.0.95-beta | 795 | 8/17/2018 |
2.0.91-beta | 794 | 8/16/2018 |
2.0.83-beta | 809 | 8/10/2018 |
2.0.67-beta | 788 | 8/3/2018 |
2.0.61-beta | 778 | 7/24/2018 |
2.0.54-beta | 835 | 7/23/2018 |
2.0.20-beta | 902 | 7/13/2018 |
2.0.2-beta | 888 | 7/9/2018 |