StepWise.IO.Pipelines 0.1.4

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package StepWise.IO.Pipelines --version 0.1.4
NuGet\Install-Package StepWise.IO.Pipelines -Version 0.1.4
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.4" />
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.4
#r "nuget: StepWise.IO.Pipelines, 0.1.4"
#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.4

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

StepWise.IO.Piplines

This project contains useful pipeline wrappers and utilities.

Getting Started

dotnet add package StepWise.IO.Pipelines

HashPipe

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

HashPipeReader incrementally computes the hash on examined data.

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();

// ♫ I've got my hash pipe ♫
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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.4 81 4/22/2024
0.1.0 80 4/21/2024