Kiyote.Buffers
0.8.0
dotnet add package Kiyote.Buffers --version 0.8.0
NuGet\Install-Package Kiyote.Buffers -Version 0.8.0
<PackageReference Include="Kiyote.Buffers" Version="0.8.0" />
<PackageVersion Include="Kiyote.Buffers" Version="0.8.0" />
<PackageReference Include="Kiyote.Buffers" />
paket add Kiyote.Buffers --version 0.8.0
#r "nuget: Kiyote.Buffers, 0.8.0"
#:package Kiyote.Buffers@0.8.0
#addin nuget:?package=Kiyote.Buffers&version=0.8.0
#tool nuget:?package=Kiyote.Buffers&version=0.8.0
Kiyote.Buffers
Provides IBufferOperator to perform actions on large buffers. BufferOperator provides a generic
implementation to allow any custom operation to be crafted as part of the Perform call.
Overview
This library was created to service the needs of large buffer operations in other libraries. It offers a way to reduce boilerplate code such that you only write the operation you wish to perform on the buffer and the library will handle the rest.
Getting Started
Register the factories and operators with the DI container:
services.AddBuffers();
Then inject the IBufferOperator into your class and use it to perform operations on buffers.
public class MyClass
{
private readonly IBufferFactory _bufferFactory;
private readonly IBufferOperator _bufferOperator;
public MyClass(
IBufferFactory bufferFactory,
IBufferOperator bufferOperator
) {
_bufferFactory = bufferFactory;
_bufferOperator = bufferOperator;
}
public void ProcessBuffer()
{
IBuffer<byte> input = _bufferFactory.Create( 100, 100, 0 );
IBuffer<byte> output = _bufferFactory.Create( 100, 100, 0 );
_bufferOperator.Perform(
input,
value => {
return value + 1 % 255;
},
output
);
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Kiyote.Buffers:
| Package | Downloads |
|---|---|
|
Kiyote.Buffers.Numerics
Provides an abstraction for large numeric buffers and performing repetitive operations on those buffers with vectorized operations where appropriate. |
|
|
Kiyote.Imaging
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.