Nerdbank.Streams 2.15.4-alpha

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.

  16. SharedMemoryDuplexPipe connects two trusted processes on the same machine using a shared-memory IDuplexPipe.

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).
202
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
184
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
176
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
151
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
149
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.
57
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.
56
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.
56
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.
55
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
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.
54
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.
53
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.
53
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.
51
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.
51

Version Downloads Last updated
2.15.4-alpha 22 10/4/2026
2.14.411 14 10/25/2026
2.14.408 18 10/22/2026
2.14.405 15 10/14/2026
2.14.354 25 9/10/2026
2.14.310-alpha 23 8/18/2026
2.14.259-alpha 30 7/30/2026
2.13.31 28 7/30/2026
2.13.16 106 9/2/2025
2.12.90 117 8/1/2025
2.12.87 111 3/22/2025
2.12.84-alpha 118 3/20/2025
2.12.74-alpha 104 3/4/2025
2.11.92 127 3/20/2025
2.11.90 126 3/20/2025
2.11.86 127 3/4/2025
2.11.79 148 8/25/2024
2.11.74 159 5/11/2024
2.11.72 122 5/5/2024
2.10.72 144 10/8/2023
2.10.69 160 7/7/2023
2.10.66 165 7/21/2023
2.10.37-alpha 142 1/24/2023
2.10.22-alpha 139 6/17/2023
2.9.116 143 7/23/2023
2.9.112 173 11/4/2022
2.9.109 148 11/17/2022
2.9.91-alpha 135 9/20/2022
2.9.87-alpha 119 7/2/2022
2.9.71-alpha 152 7/3/2022
2.9.47-alpha 135 7/3/2022
2.9.45-alpha 136 7/3/2022
2.8.65 146 9/23/2022
2.8.61 149 7/3/2022
2.8.57 155 7/3/2022
2.8.54 155 7/3/2022
2.8.50 146 7/3/2022
2.8.46 144 7/3/2022
2.8.22-alpha 153 7/3/2022
2.7.74 139 7/3/2022
2.7.62-alpha 161 7/3/2022
2.6.81 144 7/3/2022
2.6.78 145 7/3/2022
2.6.77 155 7/3/2022
2.6.37-alpha 137 7/3/2022
2.5.76 128 7/3/2022
2.5.72 147 7/3/2022
2.5.70 153 7/3/2022
2.5.65 155 7/3/2022
2.5.60 157 7/3/2022
2.5.58 149 7/3/2022
2.5.57-alpha 138 7/3/2022
2.5.50-alpha 151 7/3/2022
2.5.19-alpha 153 7/3/2022
2.4.73 156 7/3/2022
2.4.67 151 7/3/2022
2.4.60 166 7/3/2022
2.4.59 143 7/3/2022
2.4.57 141 7/3/2022
2.4.50 162 7/3/2022
2.4.48 149 7/3/2022
2.4.46 159 7/3/2022
2.4.37 143 7/3/2022
2.4.32 146 7/3/2022
2.4.30-alpha 172 7/3/2022
2.4.27-alpha 142 7/3/2022
2.4.20-alpha 134 7/3/2022
2.4.12-alpha 145 7/3/2022
2.3.32 147 7/3/2022
2.3.30 143 7/3/2022
2.3.26 169 7/3/2022
2.3.25-alpha 146 7/3/2022
2.3.23-alpha 149 7/3/2022
2.3.21-alpha 147 7/3/2022
2.3.18-alpha 153 7/3/2022
2.2.43 127 7/3/2022
2.2.42 135 7/3/2022
2.2.38 153 7/3/2022
2.2.26 142 7/3/2022
2.2.24-rc 145 7/3/2022
2.2.5-alpha 132 7/3/2022
2.1.37 163 7/3/2022
2.1.28-beta 159 7/3/2022
2.1.23-beta 152 7/3/2022
2.1.11-alpha 161 7/3/2022
2.1.9-alpha 137 7/3/2022
2.1.6-alpha 146 7/3/2022
2.1.4-alpha 145 7/3/2022
2.1.2-alpha 140 7/3/2022
2.0.228 156 7/3/2022
2.0.225 142 7/3/2022
2.0.214 145 7/3/2022
2.0.206 158 7/3/2022
2.0.202-rc 152 7/3/2022
2.0.198-beta 153 7/3/2022
2.0.188-beta 154 7/3/2022
2.0.165-beta 143 7/3/2022
2.0.163-beta 176 7/3/2022
2.0.152-beta 134 7/3/2022
2.0.112-rc 157 7/3/2022
2.0.95-beta 161 7/3/2022
2.0.91-beta 150 7/3/2022
2.0.83-beta 155 7/3/2022
2.0.67-beta 126 7/3/2022
2.0.61-beta 141 7/3/2022
2.0.54-beta 143 7/3/2022
2.0.20-beta 132 7/3/2022
2.0.2-beta 151 7/3/2022