Nerdbank.Streams 2.11.79
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.
Showing the top 20 packages that depend on Nerdbank.Streams.
Packages | Downloads |
---|---|
Tmds.DBus.Protocol
Tmds.DBus.Protocol Library
|
9 |
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
|
7 |
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
|
6 |
MessagePack
Extremely Fast MessagePack(MsgPack) Serializer for C#(.NET, .NET Core, Unity, Xamarin).
|
5 |
https://github.com/AArnott/Nerdbank.Streams/releases/tag/v2.11.79
.NET 6.0
- Microsoft.VisualStudio.Threading (>= 17.10.48)
- Microsoft.VisualStudio.Validation (>= 17.8.8)
- System.IO.Pipelines (>= 8.0.0)
.NET Standard 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)
.NET Standard 2.1
- 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)
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
Version | Downloads | Last updated |
---|---|---|
2.11.79 | 4 | 08/27/2024 |
2.11.74 | 6 | 05/25/2024 |
2.11.72 | 3 | 05/25/2024 |
2.10.72 | 4 | 04/28/2024 |
2.10.69 | 3 | 04/28/2024 |
2.10.66 | 3 | 04/28/2024 |
2.10.37-alpha | 4 | 04/28/2024 |
2.10.22-alpha | 3 | 04/28/2024 |
2.9.116 | 3 | 04/28/2024 |
2.9.112 | 3 | 04/28/2024 |
2.9.109 | 4 | 04/23/2024 |
2.9.91-alpha | 3 | 04/28/2024 |
2.9.87-alpha | 5 | 04/28/2024 |
2.9.71-alpha | 4 | 04/28/2024 |
2.9.47-alpha | 3 | 06/20/2024 |
2.9.45-alpha | 3 | 04/28/2024 |
2.8.65 | 5 | 04/28/2024 |
2.8.61 | 4 | 04/28/2024 |
2.8.57 | 3 | 04/28/2024 |
2.8.54 | 3 | 04/28/2024 |
2.8.50 | 6 | 04/28/2024 |
2.8.46 | 4 | 04/28/2024 |
2.8.22-alpha | 4 | 04/28/2024 |
2.7.74 | 3 | 04/28/2024 |
2.7.62-alpha | 4 | 04/28/2024 |
2.6.81 | 3 | 04/28/2024 |
2.6.78 | 3 | 04/28/2024 |
2.6.77 | 3 | 04/28/2024 |
2.6.37-alpha | 4 | 04/28/2024 |
2.5.76 | 4 | 04/28/2024 |
2.5.72 | 4 | 04/28/2024 |
2.5.70 | 3 | 04/28/2024 |
2.5.65 | 5 | 04/28/2024 |
2.5.60 | 3 | 04/28/2024 |
2.5.58 | 4 | 04/04/2024 |
2.5.57-alpha | 4 | 04/28/2024 |
2.5.50-alpha | 3 | 04/28/2024 |
2.5.19-alpha | 3 | 04/28/2024 |
2.4.73 | 4 | 04/28/2024 |
2.4.67 | 7 | 04/06/2024 |
2.4.60 | 3 | 04/28/2024 |
2.4.59 | 3 | 04/28/2024 |
2.4.57 | 6 | 04/28/2024 |
2.4.50 | 3 | 04/28/2024 |
2.4.48 | 3 | 04/28/2024 |
2.4.46 | 3 | 04/28/2024 |
2.4.37 | 4 | 04/28/2024 |
2.4.32 | 3 | 04/28/2024 |
2.4.30-alpha | 5 | 04/28/2024 |
2.4.27-alpha | 4 | 04/28/2024 |
2.4.20-alpha | 4 | 04/28/2024 |
2.4.12-alpha | 3 | 04/28/2024 |
2.3.32 | 4 | 04/28/2024 |
2.3.30 | 3 | 04/28/2024 |
2.3.26 | 5 | 04/28/2024 |
2.3.25-alpha | 4 | 04/28/2024 |
2.3.23-alpha | 3 | 04/28/2024 |
2.3.21-alpha | 3 | 04/28/2024 |
2.3.18-alpha | 3 | 04/28/2024 |
2.2.43 | 5 | 04/28/2024 |
2.2.42 | 4 | 04/28/2024 |
2.2.38 | 4 | 04/28/2024 |
2.2.26 | 3 | 04/28/2024 |
2.2.24-rc | 4 | 04/28/2024 |
2.2.5-alpha | 3 | 04/28/2024 |
2.1.37 | 4 | 04/28/2024 |
2.1.28-beta | 4 | 04/28/2024 |
2.1.23-beta | 4 | 04/28/2024 |
2.1.11-alpha | 3 | 04/28/2024 |
2.1.9-alpha | 3 | 04/28/2024 |
2.1.6-alpha | 5 | 04/28/2024 |
2.1.4-alpha | 3 | 04/28/2024 |
2.1.2-alpha | 3 | 04/28/2024 |
2.0.228 | 3 | 04/28/2024 |
2.0.225 | 4 | 04/28/2024 |
2.0.214 | 4 | 04/28/2024 |
2.0.206 | 3 | 04/28/2024 |
2.0.202-rc | 8 | 04/16/2024 |
2.0.198-beta | 5 | 04/28/2024 |
2.0.188-beta | 4 | 03/25/2024 |
2.0.165-beta | 3 | 04/28/2024 |
2.0.163-beta | 4 | 04/28/2024 |
2.0.152-beta | 4 | 04/28/2024 |
2.0.112-rc | 4 | 04/28/2024 |
2.0.95-beta | 3 | 06/21/2024 |
2.0.91-beta | 2 | 06/20/2024 |
2.0.83-beta | 5 | 04/28/2024 |
2.0.67-beta | 5 | 04/28/2024 |
2.0.61-beta | 4 | 04/28/2024 |
2.0.54-beta | 5 | 04/22/2024 |
2.0.20-beta | 5 | 04/28/2024 |
2.0.2-beta | 3 | 04/28/2024 |