Class VmaVirtualBlockCreateFlags

java.lang.Object
club.doki7.vma.bitmask.VmaVirtualBlockCreateFlags

public final class VmaVirtualBlockCreateFlags extends Object
Flags to be passed as VmaVirtualBlockCreateInfo::flags.
  • Field Details

    • FLAG_BITS_MAX_ENUM

      public static final int FLAG_BITS_MAX_ENUM
      See Also:
    • LINEAR_ALGORITHM

      public static final int LINEAR_ALGORITHM

      Enables alternative, linear allocation algorithm in this virtual block.

      Specify this flag to enable linear allocation algorithm, which always creates new allocations after last one and doesn't reuse space from allocations freed in between. It trades memory consumption for simplified algorithm and data structure, which has better performance and uses less memory for metadata.

      By using this flag, you can achieve behavior of free-at-once, stack, ring buffer, and double stack. For details, see documentation chapter linear_algorithm.

      See Also:
    • ALGORITHM_MASK

      public static final int ALGORITHM_MASK
      Bit mask to extract only ALGORITHM bits from entire set of flags.
      See Also:
  • Method Details