StepWise.IO.Pipelines 0.1.0

dotnet add package StepWise.IO.Pipelines --version 0.1.0                
NuGet\Install-Package StepWise.IO.Pipelines -Version 0.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="StepWise.IO.Pipelines" Version="0.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add StepWise.IO.Pipelines --version 0.1.0                
#r "nuget: StepWise.IO.Pipelines, 0.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install StepWise.IO.Pipelines as a Cake Addin
#addin nuget:?package=StepWise.IO.Pipelines&version=0.1.0

// Install StepWise.IO.Pipelines as a Cake Tool
#tool nuget:?package=StepWise.IO.Pipelines&version=0.1.0                

StepWise.IO.Piplines

This project contains useful pipeline wrappers and utilities.

dotnet add package StepWise.IO.Pipelines

HashPipe

HashPipeReader and HashPipeWriter compute incremental hash sums on the data passing through the wrapped pipe.

This can be useful for computing etags or other data fingerprints.

var buffer = new byte[4098];
var rnd = new Random();
rnd.NextBytes(buffer);

var pipe = new Pipe();
pipe.Writer.Write(buffer);
await pipe.Writer.FlushAsync();

var hashPipe = pipe.Reader.HashPipe(HashAlgorithmName.SHA256);
var result = await hashPipe.ReadAtLeastAsync(size);
hashPipe.AdvanceTo(result.Buffer.End, result.Buffer.End);

string hash = Convert.ToHexString(hashPipe.GetHash());
Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.0 1 4/21/2024