Lindhart.Utility.IO.Streaming
5.0.0
dotnet add package Lindhart.Utility.IO.Streaming --version 5.0.0
NuGet\Install-Package Lindhart.Utility.IO.Streaming -Version 5.0.0
<PackageReference Include="Lindhart.Utility.IO.Streaming" Version="5.0.0" />
<PackageVersion Include="Lindhart.Utility.IO.Streaming" Version="5.0.0" />
<PackageReference Include="Lindhart.Utility.IO.Streaming" />
paket add Lindhart.Utility.IO.Streaming --version 5.0.0
#r "nuget: Lindhart.Utility.IO.Streaming, 5.0.0"
#:package Lindhart.Utility.IO.Streaming@5.0.0
#addin nuget:?package=Lindhart.Utility.IO.Streaming&version=5.0.0
#tool nuget:?package=Lindhart.Utility.IO.Streaming&version=5.0.0
stream-utilities
Contains simple utilities for helping when working with the Stream class in .Net
It currently contains the following helper classes:
DelegatingStream
This is usefull for overwriting a single method in a stream, or simply embedding small code.
TestReadStream
Usefull in scenarios where you want to test code that handles real world Stream. The TestReadStream behaves much like a real world Stream does - for example it does not allow you to set position. This enables you to identify possible bugs that would not have been found by testing with the MemoryStream.
StreamCounter
Can be usefull to track the number of bytes read or written. Rather usefull if you receive a Stream where you cannot determine length (ex. a file received via network), but you want to calculate it while you process it (ex. while saving it to a database).
BufferBackgroundStream
A double buffer stream that will allow reading from one buffer while filling the other in the background using a background thread. Usefull for paralizing multiple time consuming stream operations. Example if you both want to calculate hash for a Stream and then compress it. Or receive it via network, compress and store in database (here you might want to use this class twice).
TestLargeInputStream
For testing. This stream simulates a large input stream without using large amounts of memory. It simply returns random bytes when read. You can specify the length of the stream.
TestEndlessStream
For testing. This stream simulates an endless input stream without using large amounts of memory. It simply returns random bytes when read. You can call a method to simulate end of the stream (on subsequent reads).
StreamInverter (Obsolete and removed)
Can reverse a Stream wrapper direction. Usefull if you have a Stream that takes an output Stream in the constructor, but you wanted it to take an input Stream instead. Ex. when using the Stream compression methods in .net (ex. GZipStream). This is obsolete, use Pipe in .Net instead.
| Product | Versions 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 was computed. 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 | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.