Fixed length implementation of MemoryPool<T> NuGet Package

When you request buffer of size N from `System.Buffers.MemoryPool<T>` returns `IMemoryOwner<T>` which can hold `Memory<T>` at least N elements.

That proves to be a problem in some scenarios like passing serialized data back to your users. You need to pass them one more field: actual length of data.

This pool will always trim `IMemory<T>` to requested length. It will also provide a property with an access to underlying buffer.




Got any Fixed length implementation of MemoryPool<T> Question?





Info

Version: 2.0.1.6-g83eba8e
Author(s): roman-kozachenko, aensidhe
Last Update: Friday, January 11, 2019
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/progaudi/progaudi.buffers
NuGet Url: https://www.nuget.org/packages/progaudi.buffers


Install
Install-Package progaudi.buffers
dotnet add package progaudi.buffers
paket add progaudi.buffers
progaudi.buffers Download (Unzip the "nupkg" after downloading)

.NETFramework 4.5 .NETFramework 4.7 .NETStandard 2.0 net461 net462 net471 netcoreapp2.1 netcoreapp2.2 netstandard1.4 1 package depend on this package.


Tags



STATS

must-have-score

1.9

avg-downloads-per-day

2

days-since-last-release

1924