nuget.org

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.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.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. 

NuGet packages (87)

Showing the top 5 NuGet packages that depend on Nerdbank.Streams:

Package Downloads
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.

39.3M
Microsoft.VisualStudio.Utilities

A member of the Visual Studio SDK

13.1M
NATS.Client.Core

Core client for NATS, the high-performance cloud-native messaging system. Provides async pub/sub, request-reply, and queue groups for .NET applications.

9.6M
Microsoft.VisualStudio.Shell.Framework

A member of the Visual Studio SDK

9.4M
Microsoft.VisualStudio.Shell.15.0

A member of the Visual Studio SDK

8.5M

GitHub repositories (23)

Showing the top 20 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.

20.6K
MessagePack-CSharp/MessagePack-CSharp

Extremely Fast MessagePack Serializer for C#(.NET, .NET Core, Unity, Xamarin). / msgpack.org[C#]

6.8K
BililiveRecorder/BililiveRecorder

录播姬 | mikufans 生放送录制

4.8K
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.

3.2K
roslynpad/roslynpad

Cross-platform C# editor based on Roslyn

2.8K
Nexus-Mods/NexusMods.App

Home of the development of the Nexus Mods App

2.0K
microsoft/VSSDK-Extensibility-Samples

Samples for building your own Visual Studio extensions

1.3K
dotnet/dotnet

Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK.

1.2K
dotnet/project-system

The .NET Project System for Visual Studio

1.0K
microsoft/vs-streamjsonrpc

The StreamJsonRpc library offers JSON-RPC 2.0 over any .NET Stream, WebSocket, or Pipe. With bonus support for request cancellation, client proxy generation, and more.

935
mrlacey/Rapid-XAML-Toolkit

A collection of tools to accelerate XAML development within Visual Studio. These include XAML analysis, XAML generations, plus templates and helpers.

688
OmniSharp/csharp-language-server-protocol

Language Server Protocol in C#

637
RazorGenerator/RazorGenerator

A Custom Tool for Visual Studio that allows processing Razor files at design time instead of runtime, allowing them to be built into an assembly for simpler reuse and distribution.

526
microsoft/dev-tunnels

Dev Tunnels SDK

502
nats-io/nats.net

Async .NET client for NATS: pub/sub, request/reply, JetStream, KV, Object Store, Services

475
Texnomic/SecureDNS

Secure, Modern, Fully-Featured, All-In-One Cross-Architecture & Cross-Platform DNS Server Using .NET 10

368
AArnott/IronPigeon

IronPigeon is a decentralized communication protocol that provides high confidentiality and authenticity for the messages.

266
AArnott/Nerdbank.MessagePack

A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#]

172
X-Sharp/XSharpPublic

Public repository for the source code for the XSharp Compiler, Runtime, Project System and Tools.

145
galister/WlxOverlay

A simple OpenVR overlay for Wayland and X11 desktops

132

Include prerelease

Include vulnerable

Include deprecated

Version Downloads Last Updated
2.14.310-alpha 131 8/17/2026
2.14.259-alpha 170 7/27/2026
2.13.31 11,792 7/27/2026
2.13.16 4,411,099 8/31/2025
2.12.90 26,051 7/29/2025
2.12.87 15,845,102 3/20/2025
2.12.84-alpha 1,965 3/12/2025
2.12.74-alpha 581 3/3/2025
2.11.92 2,717 3/19/2025
2.11.90 3,224,311 3/17/2025
2.11.86 305,096 3/3/2025
2.11.79 622,788 8/23/2024
2.11.74 1,401,884 5/6/2024
2.11.72 9,138 4/29/2024
2.10.72 272,095 10/3/2023
2.10.69 2,016,265 6/21/2023
2.10.66 248,278 6/7/2023
2.10.37-alpha 1,081 1/10/2023
2.10.22-alpha 659 12/21/2022
2.9.116 6,402 6/7/2023

Loading failed

Read the original on nuget.org ↗