Skip to content

DWVoid/Gravitas.PinnedPool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PinnedPool

Basically a copy of System.Buffers.SharedArrayPool from the official dotnet 9.0 source tree, except

buffer = GC.AllocateUninitializedArray<T>(minimumLength);

is changed into

buffer = GC.AllocateUninitializedArray<T>(minimumLength, true);

Created as a stop-gap solution for native-interop and IO until coreclr figures out how to integrate pinned-memory support for their array and memory pools.

Disclaimer

Though the code here is mostly adapted from the dotnet official repository, and the correctness should be assumed to be good, this repository is not affiliated to, nor have any official or personal connection with the official dotnet project.

Code and any artifacts created from this repository is shared with good intention with only minimal testing for basic functionality and does not resemble the code quality of any official dotnet project. Any issues related to classes provided by this project should be posted in this repository.

About

A copy of System.Buffers.SharedArrayPool<T> modified to provide pinned arrays

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages