Nerdbank.Streams 2.13.16

Specialized .NET Stream classes

Enhanced streams for communication in-proc or across the Internet.

Features

  1. 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 this Stream with any two parties (in the same AppDomain) and one can send messages to the other.
  2. FullDuplexStream creates a pair of bidirectional streams for in-proc two-way communication; it also creates a single bidirectional stream from two unidirectional streams.
  3. 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.
  4. AsStream() wraps a WebSocket, System.IO.Pipelines.PipeReader, System.IO.Pipelines.PipeWriter, or System.IO.Pipelines.IDuplexPipe with a System.IO.Stream for reading and/or writing.
  5. UsePipe() enables reading from and writing to a Stream or WebSocket using the PipeReader and PipeWriter APIs.
  6. Stream.ReadSlice(long) creates a sub-stream that ends after a given number of bytes.
  7. PipeReader.ReadSlice(long) creates a sub-PipeReader that ends after a given number of bytes.
  8. 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.
  9. WriteSubstream and ReadSubstream 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.
  10. Sequence<T> is a builder for ReadOnlySequence<T>.
  11. PrefixingBufferWriter<T> wraps another IBufferWriter<T> to allow for prefixing some header to the next written buffer, which may be arbitrarily long.
  12. BufferTextWriter is a TextWriter-derived type that can write directly to any IBufferWriter<byte>, making it more reusable than StreamWriter and thus allows for alloc-free writing across many writers.
  13. SequenceTextReader is a TextReader-derived type that can read directly from any ReadOnlySequence<byte>, making it more reusable than StreamReader and thus allows for alloc-free reading across many sequences.
  14. DuplexPipe is a trivial implementation of IDuplexPipe.
  15. Stream.ReadBlockAsync guarantees to fill the supplied buffer except under certain documented conditions, instead of the regular ReadAsync guarantee of supplying at least 1 byte.

Showing the top 20 packages that depend on Nerdbank.Streams.

Packages Downloads
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
53
Microsoft.ServiceHub.Client
The client library for ServiceHub, which makes it easy to request and activate services in another process.
67
Microsoft.ServiceHub.Framework
The distributed ServiceHub Framework
66
Microsoft.ServiceHub.Framework
The distributed ServiceHub Framework.
53
Microsoft.ServiceHub.Framework
The distributed ServiceHub Framework.
60
Microsoft.ServiceHub.Framework
The distributed ServiceHub Framework.
61
Microsoft.ServiceHub.Framework
The distributed ServiceHub Framework.
62
Microsoft.ServiceHub.Framework
The distributed ServiceHub Framework.
63
Microsoft.ServiceHub.Framework
The distributed ServiceHub Framework.
64
Microsoft.ServiceHub.Framework
The distributed ServiceHub Framework.
70
Microsoft.VisualStudio.LanguageServer.Client
Visual Studio client side APIs for interacting with a Language Server Protocol enabled server.
54
Microsoft.VisualStudio.LanguageServer.Client
Visual Studio client side APIs for interacting with a Language Server Protocol enabled server.
57
Microsoft.VisualStudio.Shell.Framework
A member of the Visual Studio SDK
55
Microsoft.VisualStudio.Utilities
A member of the Visual Studio SDK
57
Microsoft.VisualStudio.Utilities
A member of the Visual Studio SDK
60
Microsoft.VisualStudio.Utilities
A member of the Visual Studio SDK
68
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.
54

https://github.com/AArnott/Nerdbank.Streams/releases/tag/v2.13.16

Version Downloads Last updated
2.13.16 44 09/04/2025
2.12.90 29 07/31/2025
2.12.87 41 03/30/2025
2.12.84-alpha 36 03/12/2025
2.12.74-alpha 33 03/10/2025
2.11.92 35 04/01/2025
2.11.90 38 03/28/2025
2.11.86 39 03/10/2025
2.11.79 49 12/02/2024
2.11.74 49 05/24/2024
2.11.72 51 05/24/2024
2.10.72 41 05/02/2024
2.10.69 47 05/24/2024
2.10.66 41 05/24/2024
2.10.37-alpha 41 05/24/2024
2.10.22-alpha 43 05/24/2024
2.9.116 48 05/24/2024
2.9.112 41 05/24/2024
2.9.109 44 05/24/2024
2.9.91-alpha 39 05/24/2024
2.9.87-alpha 48 05/24/2024
2.9.71-alpha 38 05/24/2024
2.9.47-alpha 49 05/24/2024
2.9.45-alpha 38 05/24/2024
2.8.65 44 05/24/2024
2.8.61 54 05/24/2024
2.8.57 41 05/24/2024
2.8.54 44 05/24/2024
2.8.50 47 05/24/2024
2.8.46 48 05/24/2024
2.8.22-alpha 49 05/24/2024
2.7.74 37 05/24/2024
2.7.62-alpha 42 05/24/2024
2.6.81 50 02/06/2024
2.6.78 42 05/24/2024
2.6.77 39 05/24/2024
2.6.37-alpha 41 05/24/2024
2.5.76 40 05/24/2024
2.5.72 41 05/24/2024
2.5.70 47 05/24/2024
2.5.65 37 05/24/2024
2.5.60 49 05/24/2024
2.5.58 39 05/24/2024
2.5.57-alpha 49 05/24/2024
2.5.50-alpha 42 05/24/2024
2.5.19-alpha 39 05/24/2024
2.4.73 53 05/24/2024
2.4.67 38 05/24/2024
2.4.60 38 05/24/2024
2.4.59 40 05/24/2024
2.4.57 52 05/24/2024
2.4.50 41 05/24/2024
2.4.48 45 05/24/2024
2.4.46 39 05/24/2024
2.4.37 52 05/24/2024
2.4.32 40 05/24/2024
2.4.30-alpha 43 05/24/2024
2.4.27-alpha 35 05/24/2024
2.4.20-alpha 40 05/24/2024
2.4.12-alpha 44 05/24/2024
2.3.32 43 05/24/2024
2.3.30 39 05/24/2024
2.3.26 41 11/29/2024
2.3.25-alpha 48 05/24/2024
2.3.23-alpha 45 05/24/2024
2.3.21-alpha 38 05/24/2024
2.3.18-alpha 40 05/24/2024
2.2.43 41 05/24/2024
2.2.42 35 05/24/2024
2.2.38 48 05/24/2024
2.2.26 55 05/24/2024
2.2.24-rc 48 05/24/2024
2.2.5-alpha 62 05/24/2024
2.1.37 49 05/24/2024
2.1.28-beta 41 05/24/2024
2.1.23-beta 48 05/24/2024
2.1.11-alpha 43 05/24/2024
2.1.9-alpha 44 05/24/2024
2.1.6-alpha 43 05/24/2024
2.1.4-alpha 46 05/24/2024
2.1.2-alpha 42 05/24/2024
2.0.228 47 05/24/2024
2.0.225 35 05/24/2024
2.0.214 43 05/24/2024
2.0.206 38 05/24/2024
2.0.202-rc 44 05/24/2024
2.0.198-beta 39 05/24/2024
2.0.188-beta 44 05/24/2024
2.0.165-beta 47 05/24/2024
2.0.163-beta 50 05/24/2024
2.0.152-beta 45 05/24/2024
2.0.112-rc 44 05/24/2024
2.0.95-beta 43 05/24/2024
2.0.91-beta 41 05/24/2024
2.0.83-beta 45 05/24/2024
2.0.67-beta 33 05/24/2024
2.0.61-beta 40 05/24/2024
2.0.54-beta 50 05/24/2024
2.0.20-beta 42 05/24/2024
2.0.2-beta 43 05/24/2024