namespace Misaki.HighPerformance.LowLevel.Buffer;
[Flags]
public enum AllocationOption : byte
{
///
/// Default allocation option. Values are uninitialized.
///
None = 0,
///
/// Clear the memory to zero upon allocation.
///
Clear = 1 << 0,
}
public enum Allocator : byte
{
// Make the first allocator as invalid because we don't want to user create a default collection without passing any parameters
Invalid,
///
/// Allocator for temporary allocations. Allocations are automatically released after use automatically.
///
Temp,
///
/// Allocator for persistent allocations. Allocations are not automatically released after use.
///
Persistent,
///
/// Allocator for stack allocations. Must have at least one active stack scope. Allocations are automatically released when the stack scope is exited.
///
Stack
}