Nerdbank.Streams 2.12.74-alpha
Specialized .NET Stream classes
Enhanced streams for communication in-proc or across the Internet.
Features
SimplexStreamis meant to allow two parties to communicate one direction. Anything written to the stream can subsequently be read from it. You can share thisStreamwith any two parties (in the same AppDomain) and one can send messages to the other.FullDuplexStreamcreates a pair of bidirectional streams for in-proc two-way communication; it also creates a single bidirectional stream from two unidirectional streams.MultiplexingStreamallows 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.IDuplexPipewith aSystem.IO.Streamfor reading and/or writing.UsePipe()enables reading from and writing to aStreamorWebSocketusing thePipeReaderandPipeWriterAPIs.Stream.ReadSlice(long)creates a sub-stream that ends after a given number of bytes.PipeReader.ReadSlice(long)creates a sub-PipeReaderthat ends after a given number of bytes.MonitoringStreamwraps another Stream and raises events for all I/O calls so you can monitor and/or trace the data as it goes by.WriteSubstreamandReadSubstreamallow 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.BufferTextWriteris aTextWriter-derived type that can write directly to anyIBufferWriter<byte>, making it more reusable thanStreamWriterand thus allows for alloc-free writing across many writers.SequenceTextReaderis aTextReader-derived type that can read directly from anyReadOnlySequence<byte>, making it more reusable thanStreamReaderand thus allows for alloc-free reading across many sequences.DuplexPipeis a trivial implementation ofIDuplexPipe.Stream.ReadBlockAsyncguarantees to fill the supplied buffer except under certain documented conditions, instead of the regularReadAsyncguarantee of supplying at least 1 byte.
Showing the top 20 packages that depend on Nerdbank.Streams.
| Packages | Downloads |
|---|---|
|
Microsoft.ServiceHub.Client
The client library for ServiceHub, which makes it easy to request and activate services in another process.
|
35 |
|
Microsoft.ServiceHub.Framework
The distributed ServiceHub Framework
|
31 |
|
Microsoft.ServiceHub.Framework
The distributed ServiceHub Framework.
|
28 |
|
Microsoft.ServiceHub.Framework
The distributed ServiceHub Framework.
|
29 |
|
Microsoft.ServiceHub.Framework
The distributed ServiceHub Framework.
|
30 |
|
Microsoft.ServiceHub.Framework
The distributed ServiceHub Framework.
|
31 |
|
Microsoft.ServiceHub.Framework
The distributed ServiceHub Framework.
|
33 |
|
Microsoft.VisualStudio.Imaging
A member of the Visual Studio SDK
|
27 |
|
Microsoft.VisualStudio.LanguageServer.Client
Visual Studio client side APIs for interacting with a Language Server Protocol enabled server.
|
30 |
|
Microsoft.VisualStudio.SDK
Visual Studio SDK meta-package. Reference this to get references to most other Visual Studio extensibility packages.
|
29 |
|
Microsoft.VisualStudio.Shell.15.0
A member of the Visual Studio SDK
|
27 |
|
Microsoft.VisualStudio.Shell.Framework
A member of the Visual Studio SDK
|
27 |
|
Microsoft.VisualStudio.Shell.Framework
A member of the Visual Studio SDK
|
29 |
|
StreamJsonRpc
A cross-platform .NET portable library that implements the JSON-RPC wire protocol and can use System.IO.Stream or WebSocket so you can use it with any transport.
|
27 |
|
StreamJsonRpc
A cross-platform .NET portable library that implements the JSON-RPC wire protocol and can use System.IO.Stream or WebSocket so you can use it with any transport.
|
28 |
|
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.
|
27 |
|
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.
|
28 |
|
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.
|
30 |
https://github.com/AArnott/Nerdbank.Streams/releases/tag/v2.12.74-alpha
.NET 8.0
- Microsoft.VisualStudio.Threading (>= 17.12.19)
- System.IO.Pipelines (>= 8.0.0)
- Microsoft.VisualStudio.Validation (>= 17.8.8)
.NET Standard 2.1
- Microsoft.Bcl.AsyncInterfaces (>= 8.0.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.0)
- System.IO.Pipelines (>= 8.0.0)
- Microsoft.VisualStudio.Validation (>= 17.8.8)
- Microsoft.VisualStudio.Threading (>= 17.12.19)
.NET Standard 2.0
- System.Runtime.CompilerServices.Unsafe (>= 6.1.0)
- Microsoft.VisualStudio.Validation (>= 17.8.8)
- Microsoft.VisualStudio.Threading (>= 17.12.19)
- Microsoft.Bcl.AsyncInterfaces (>= 8.0.0)
- System.IO.Pipelines (>= 8.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 2.13.16 | 7 | 09/04/2025 |
| 2.12.90 | 8 | 07/31/2025 |
| 2.12.87 | 17 | 03/30/2025 |
| 2.12.84-alpha | 14 | 03/12/2025 |
| 2.12.74-alpha | 13 | 03/10/2025 |
| 2.11.92 | 15 | 04/01/2025 |
| 2.11.90 | 16 | 03/28/2025 |
| 2.11.86 | 16 | 03/10/2025 |
| 2.11.79 | 23 | 12/02/2024 |
| 2.11.74 | 24 | 05/24/2024 |
| 2.11.72 | 26 | 05/24/2024 |
| 2.10.72 | 24 | 05/02/2024 |
| 2.10.69 | 22 | 05/24/2024 |
| 2.10.66 | 24 | 05/24/2024 |
| 2.10.37-alpha | 20 | 05/24/2024 |
| 2.10.22-alpha | 20 | 05/24/2024 |
| 2.9.116 | 22 | 05/24/2024 |
| 2.9.112 | 21 | 05/24/2024 |
| 2.9.109 | 23 | 05/24/2024 |
| 2.9.91-alpha | 22 | 05/24/2024 |
| 2.9.87-alpha | 22 | 05/24/2024 |
| 2.9.71-alpha | 21 | 05/24/2024 |
| 2.9.47-alpha | 24 | 05/24/2024 |
| 2.9.45-alpha | 20 | 05/24/2024 |
| 2.8.65 | 20 | 05/24/2024 |
| 2.8.61 | 27 | 05/24/2024 |
| 2.8.57 | 21 | 05/24/2024 |
| 2.8.54 | 21 | 05/24/2024 |
| 2.8.50 | 23 | 05/24/2024 |
| 2.8.46 | 22 | 05/24/2024 |
| 2.8.22-alpha | 21 | 05/24/2024 |
| 2.7.74 | 20 | 05/24/2024 |
| 2.7.62-alpha | 19 | 05/24/2024 |
| 2.6.81 | 25 | 02/06/2024 |
| 2.6.78 | 20 | 05/24/2024 |
| 2.6.77 | 20 | 05/24/2024 |
| 2.6.37-alpha | 19 | 05/24/2024 |
| 2.5.76 | 22 | 05/24/2024 |
| 2.5.72 | 21 | 05/24/2024 |
| 2.5.70 | 24 | 05/24/2024 |
| 2.5.65 | 19 | 05/24/2024 |
| 2.5.60 | 25 | 05/24/2024 |
| 2.5.58 | 19 | 05/24/2024 |
| 2.5.57-alpha | 22 | 05/24/2024 |
| 2.5.50-alpha | 20 | 05/24/2024 |
| 2.5.19-alpha | 18 | 05/24/2024 |
| 2.4.73 | 28 | 05/24/2024 |
| 2.4.67 | 20 | 05/24/2024 |
| 2.4.60 | 22 | 05/24/2024 |
| 2.4.59 | 24 | 05/24/2024 |
| 2.4.57 | 25 | 05/24/2024 |
| 2.4.50 | 21 | 05/24/2024 |
| 2.4.48 | 24 | 05/24/2024 |
| 2.4.46 | 18 | 05/24/2024 |
| 2.4.37 | 30 | 05/24/2024 |
| 2.4.32 | 21 | 05/24/2024 |
| 2.4.30-alpha | 18 | 05/24/2024 |
| 2.4.27-alpha | 17 | 05/24/2024 |
| 2.4.20-alpha | 18 | 05/24/2024 |
| 2.4.12-alpha | 22 | 05/24/2024 |
| 2.3.32 | 22 | 05/24/2024 |
| 2.3.30 | 19 | 05/24/2024 |
| 2.3.26 | 21 | 11/29/2024 |
| 2.3.25-alpha | 25 | 05/24/2024 |
| 2.3.23-alpha | 22 | 05/24/2024 |
| 2.3.21-alpha | 18 | 05/24/2024 |
| 2.3.18-alpha | 22 | 05/24/2024 |
| 2.2.43 | 22 | 05/24/2024 |
| 2.2.42 | 18 | 05/24/2024 |
| 2.2.38 | 23 | 05/24/2024 |
| 2.2.26 | 23 | 05/24/2024 |
| 2.2.24-rc | 23 | 05/24/2024 |
| 2.2.5-alpha | 26 | 05/24/2024 |
| 2.1.37 | 24 | 05/24/2024 |
| 2.1.28-beta | 23 | 05/24/2024 |
| 2.1.23-beta | 20 | 05/24/2024 |
| 2.1.11-alpha | 19 | 05/24/2024 |
| 2.1.9-alpha | 23 | 05/24/2024 |
| 2.1.6-alpha | 23 | 05/24/2024 |
| 2.1.4-alpha | 25 | 05/24/2024 |
| 2.1.2-alpha | 20 | 05/24/2024 |
| 2.0.228 | 24 | 05/24/2024 |
| 2.0.225 | 23 | 05/24/2024 |
| 2.0.214 | 24 | 05/24/2024 |
| 2.0.206 | 23 | 05/24/2024 |
| 2.0.202-rc | 22 | 05/24/2024 |
| 2.0.198-beta | 21 | 05/24/2024 |
| 2.0.188-beta | 23 | 05/24/2024 |
| 2.0.165-beta | 21 | 05/24/2024 |
| 2.0.163-beta | 25 | 05/24/2024 |
| 2.0.152-beta | 20 | 05/24/2024 |
| 2.0.112-rc | 24 | 05/24/2024 |
| 2.0.95-beta | 22 | 05/24/2024 |
| 2.0.91-beta | 17 | 05/24/2024 |
| 2.0.83-beta | 20 | 05/24/2024 |
| 2.0.67-beta | 18 | 05/24/2024 |
| 2.0.61-beta | 19 | 05/24/2024 |
| 2.0.54-beta | 23 | 05/24/2024 |
| 2.0.20-beta | 17 | 05/24/2024 |
| 2.0.2-beta | 23 | 05/24/2024 |