Kiyote.Buffers 0.8.0

dotnet add package Kiyote.Buffers --version 0.8.0
                    
NuGet\Install-Package Kiyote.Buffers -Version 0.8.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="Kiyote.Buffers" Version="0.8.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Kiyote.Buffers" Version="0.8.0" />
                    
Directory.Packages.props
<PackageReference Include="Kiyote.Buffers" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Kiyote.Buffers --version 0.8.0
                    
#r "nuget: Kiyote.Buffers, 0.8.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.
#:package Kiyote.Buffers@0.8.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Kiyote.Buffers&version=0.8.0
                    
Install as a Cake Addin
#tool nuget:?package=Kiyote.Buffers&version=0.8.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last Updated
0.8.0 113 8/13/2026
0.7.1 97 8/12/2026
0.7.0 94 8/12/2026
0.6.1 143 8/11/2026
0.6.0 112 8/11/2026
0.5.1 120 4/14/2026
0.5.0 147 2/8/2026
0.4.0 295 12/15/2025
0.3.1 247 10/8/2025
0.3.0 252 10/6/2025
0.1.0 329 10/1/2024