No Alloc Collections Documentation
No Alloc Collections is a library that provides stack only data structures in C#. This means that you
cannot store these collections as member variables in structs or classes and can only live in the closure they
are declared.
You can store them in
ref structas they are within the closure of the stack.
All data structures must be backed by your custom allocated memory. This can be done through the stackalloc keyword
or aliased as a span from a managed Array.
dotnet add package NoAllocCollections2 min read • Tools
NoAllocQueueExtensions