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, /// /// Specify that this memory allocation should not been tracked competly, which will not perform any safty check like use after free and leack detection. /// Untrack = 1 << 1, } 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, }