Class XrRoomLayoutFB

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrRoomLayoutFB extends Struct<XrRoomLayoutFB> implements NativeResource

 struct XrRoomLayoutFB {
     XrStructureType type;
     void const * next;
     {@link XrUuidEXT XrUuidEXT} floorUuid;
     {@link XrUuidEXT XrUuidEXT} ceilingUuid;
     uint32_t wallUuidCapacityInput;
     uint32_t wallUuidCountOutput;
     {@link XrUuidEXT XrUuidEXT} * wallUuids;
 }
  • 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.
    • FLOORUUID

      public static final int FLOORUUID
      The struct member offsets.
    • CEILINGUUID

      public static final int CEILINGUUID
      The struct member offsets.
    • WALLUUIDCAPACITYINPUT

      public static final int WALLUUIDCAPACITYINPUT
      The struct member offsets.
    • WALLUUIDCOUNTOUTPUT

      public static final int WALLUUIDCOUNTOUTPUT
      The struct member offsets.
    • WALLUUIDS

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

    • XrRoomLayoutFB

      public XrRoomLayoutFB(ByteBuffer container)
      Creates a XrRoomLayoutFB 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<XrRoomLayoutFB>
    • type

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

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

      public XrUuidEXT floorUuid()
      Returns:
      a XrUuidEXT view of the floorUuid field.
    • ceilingUuid

      public XrUuidEXT ceilingUuid()
      Returns:
      a XrUuidEXT view of the ceilingUuid field.
    • wallUuidCapacityInput

      public int wallUuidCapacityInput()
      Returns:
      the value of the wallUuidCapacityInput field.
    • wallUuidCountOutput

      public int wallUuidCountOutput()
      Returns:
      the value of the wallUuidCountOutput field.
    • wallUuids

      public @Nullable XrUuidEXT.Buffer wallUuids()
      Returns:
      a XrUuidEXT.Buffer view of the struct array pointed to by the wallUuids field.
    • type

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

      public XrRoomLayoutFB type$Default()
      Sets the TYPE_ROOM_LAYOUT_FB value to the type field.
    • next

      public XrRoomLayoutFB next(long value)
      Sets the specified value to the next field.
    • floorUuid

      public XrRoomLayoutFB floorUuid(XrUuidEXT value)
      Copies the specified XrUuidEXT to the floorUuid field.
    • floorUuid

      public XrRoomLayoutFB floorUuid(Consumer<XrUuidEXT> consumer)
      Passes the floorUuid field to the specified Consumer.
    • ceilingUuid

      public XrRoomLayoutFB ceilingUuid(XrUuidEXT value)
      Copies the specified XrUuidEXT to the ceilingUuid field.
    • ceilingUuid

      public XrRoomLayoutFB ceilingUuid(Consumer<XrUuidEXT> consumer)
      Passes the ceilingUuid field to the specified Consumer.
    • wallUuidCapacityInput

      public XrRoomLayoutFB wallUuidCapacityInput(int value)
      Sets the specified value to the wallUuidCapacityInput field.
    • wallUuidCountOutput

      public XrRoomLayoutFB wallUuidCountOutput(int value)
      Sets the specified value to the wallUuidCountOutput field.
    • wallUuids

      public XrRoomLayoutFB wallUuids(@Nullable XrUuidEXT.Buffer value)
      Sets the address of the specified XrUuidEXT.Buffer to the wallUuids field.
    • set

      public XrRoomLayoutFB set(int type, long next, XrUuidEXT floorUuid, XrUuidEXT ceilingUuid, int wallUuidCapacityInput, int wallUuidCountOutput, @Nullable XrUuidEXT.Buffer wallUuids)
      Initializes this struct with the specified values.
    • set

      public XrRoomLayoutFB set(XrRoomLayoutFB src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static XrRoomLayoutFB.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new XrRoomLayoutFB.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().
    • nfloorUuid

      public static XrUuidEXT nfloorUuid(long struct)
      Unsafe version of floorUuid().
    • nceilingUuid

      public static XrUuidEXT nceilingUuid(long struct)
      Unsafe version of ceilingUuid().
    • nwallUuidCapacityInput

      public static int nwallUuidCapacityInput(long struct)
      Unsafe version of wallUuidCapacityInput().
    • nwallUuidCountOutput

      public static int nwallUuidCountOutput(long struct)
      Unsafe version of wallUuidCountOutput().
    • nwallUuids

      public static @Nullable XrUuidEXT.Buffer nwallUuids(long struct)
      Unsafe version of wallUuids().
    • 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.
    • nfloorUuid

      public static void nfloorUuid(long struct, XrUuidEXT value)
      Unsafe version of floorUuid.
    • nceilingUuid

      public static void nceilingUuid(long struct, XrUuidEXT value)
      Unsafe version of ceilingUuid.
    • nwallUuidCapacityInput

      public static void nwallUuidCapacityInput(long struct, int value)
      Sets the specified value to the wallUuidCapacityInput field of the specified struct.
    • nwallUuidCountOutput

      public static void nwallUuidCountOutput(long struct, int value)
      Unsafe version of wallUuidCountOutput.
    • nwallUuids

      public static void nwallUuids(long struct, @Nullable XrUuidEXT.Buffer value)
      Unsafe version of wallUuids.