Class XrWorldMeshGetInfoML

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrWorldMeshGetInfoML extends Struct<XrWorldMeshGetInfoML> implements NativeResource

 struct XrWorldMeshGetInfoML {
     XrStructureType type;
     void const * next;
     XrWorldMeshDetectorFlagsML flags;
     float fillHoleLength;
     float disconnectedComponentArea;
     uint32_t blockCount;
     {@link XrWorldMeshBlockRequestML XrWorldMeshBlockRequestML} * blocks;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • FILLHOLELENGTH

      public static final int FILLHOLELENGTH
      The struct member offsets.
    • DISCONNECTEDCOMPONENTAREA

      public static final int DISCONNECTEDCOMPONENTAREA
      The struct member offsets.
    • BLOCKCOUNT

      public static final int BLOCKCOUNT
      The struct member offsets.
    • BLOCKS

      public static final int BLOCKS
      The struct member offsets.
  • Constructor Details

    • XrWorldMeshGetInfoML

      public XrWorldMeshGetInfoML(ByteBuffer container)
      Creates a XrWorldMeshGetInfoML instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<XrWorldMeshGetInfoML>
    • type

      public int type()
      Returns:
      the value of the type field.
    • next

      public long next()
      Returns:
      the value of the next field.
    • flags

      public long flags()
      Returns:
      the value of the flags field.
    • fillHoleLength

      public float fillHoleLength()
      Returns:
      the value of the fillHoleLength field.
    • disconnectedComponentArea

      public float disconnectedComponentArea()
      Returns:
      the value of the disconnectedComponentArea field.
    • blockCount

      public int blockCount()
      Returns:
      the value of the blockCount field.
    • blocks

      Returns:
      a XrWorldMeshBlockRequestML.Buffer view of the struct array pointed to by the blocks field.
    • type

      public XrWorldMeshGetInfoML type(int value)
      Sets the specified value to the type field.
    • type$Default

      public XrWorldMeshGetInfoML type$Default()
      Sets the TYPE_WORLD_MESH_GET_INFO_ML value to the type field.
    • next

      public XrWorldMeshGetInfoML next(long value)
      Sets the specified value to the next field.
    • flags

      public XrWorldMeshGetInfoML flags(long value)
      Sets the specified value to the flags field.
    • fillHoleLength

      public XrWorldMeshGetInfoML fillHoleLength(float value)
      Sets the specified value to the fillHoleLength field.
    • disconnectedComponentArea

      public XrWorldMeshGetInfoML disconnectedComponentArea(float value)
      Sets the specified value to the disconnectedComponentArea field.
    • blocks

      Sets the address of the specified XrWorldMeshBlockRequestML.Buffer to the blocks field.
    • set

      public XrWorldMeshGetInfoML set(int type, long next, long flags, float fillHoleLength, float disconnectedComponentArea, XrWorldMeshBlockRequestML.Buffer blocks)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static XrWorldMeshGetInfoML malloc()
      Returns a new XrWorldMeshGetInfoML instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static XrWorldMeshGetInfoML calloc()
      Returns a new XrWorldMeshGetInfoML instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static XrWorldMeshGetInfoML create()
      Returns a new XrWorldMeshGetInfoML instance allocated with BufferUtils.
    • create

      public static XrWorldMeshGetInfoML create(long address)
      Returns a new XrWorldMeshGetInfoML instance for the specified memory address.
    • createSafe

      public static @Nullable XrWorldMeshGetInfoML createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrWorldMeshGetInfoML.Buffer malloc(int capacity)
      Returns a new XrWorldMeshGetInfoML.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static XrWorldMeshGetInfoML.Buffer calloc(int capacity)
      Returns a new XrWorldMeshGetInfoML.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrWorldMeshGetInfoML.Buffer create(int capacity)
      Returns a new XrWorldMeshGetInfoML.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrWorldMeshGetInfoML.Buffer create(long address, int capacity)
      Create a XrWorldMeshGetInfoML.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable XrWorldMeshGetInfoML.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrWorldMeshGetInfoML malloc(MemoryStack stack)
      Returns a new XrWorldMeshGetInfoML instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static XrWorldMeshGetInfoML calloc(MemoryStack stack)
      Returns a new XrWorldMeshGetInfoML instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static XrWorldMeshGetInfoML.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new XrWorldMeshGetInfoML.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static XrWorldMeshGetInfoML.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new XrWorldMeshGetInfoML.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • ntype

      public static int ntype(long struct)
      Unsafe version of type().
    • nnext

      public static long nnext(long struct)
      Unsafe version of next().
    • nflags

      public static long nflags(long struct)
      Unsafe version of flags().
    • nfillHoleLength

      public static float nfillHoleLength(long struct)
      Unsafe version of fillHoleLength().
    • ndisconnectedComponentArea

      public static float ndisconnectedComponentArea(long struct)
      Unsafe version of disconnectedComponentArea().
    • nblockCount

      public static int nblockCount(long struct)
      Unsafe version of blockCount().
    • nblocks

      public static XrWorldMeshBlockRequestML.Buffer nblocks(long struct)
      Unsafe version of blocks().
    • ntype

      public static void ntype(long struct, int value)
      Unsafe version of type.
    • nnext

      public static void nnext(long struct, long value)
      Unsafe version of next.
    • nflags

      public static void nflags(long struct, long value)
      Unsafe version of flags.
    • nfillHoleLength

      public static void nfillHoleLength(long struct, float value)
      Unsafe version of fillHoleLength.
    • ndisconnectedComponentArea

      public static void ndisconnectedComponentArea(long struct, float value)
      Unsafe version of disconnectedComponentArea.
    • nblockCount

      public static void nblockCount(long struct, int value)
      Sets the specified value to the blockCount field of the specified struct.
    • nblocks

      public static void nblocks(long struct, XrWorldMeshBlockRequestML.Buffer value)
      Unsafe version of blocks.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate