Class XrActionCreateInfo.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<XrActionCreateInfo>, NativeResource, Pointer
Enclosing class:
XrActionCreateInfo

public static class XrActionCreateInfo.Buffer extends StructBuffer<XrActionCreateInfo,XrActionCreateInfo.Buffer> implements NativeResource
An array of XrActionCreateInfo structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new XrActionCreateInfo.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by XrActionCreateInfo.SIZEOF, and its mark will be undefined.

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

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • type

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

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

      public ByteBuffer actionName()
      Returns:
      a ByteBuffer view of the actionName field.
    • actionNameString

      public String actionNameString()
      Returns:
      the null-terminated string stored in the actionName field.
    • actionType

      public int actionType()
      Returns:
      the value of the actionType field.
    • countSubactionPaths

      public int countSubactionPaths()
      Returns:
      the value of the countSubactionPaths field.
    • subactionPaths

      public @Nullable LongBuffer subactionPaths()
      Returns:
      a LongBuffer view of the data pointed to by the subactionPaths field.
    • localizedActionName

      public ByteBuffer localizedActionName()
      Returns:
      a ByteBuffer view of the localizedActionName field.
    • localizedActionNameString

      public String localizedActionNameString()
      Returns:
      the null-terminated string stored in the localizedActionName field.
    • type

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

      public XrActionCreateInfo.Buffer type$Default()
      Sets the TYPE_ACTION_CREATE_INFO value to the type field.
    • next

      public XrActionCreateInfo.Buffer next(long value)
      Sets the specified value to the next field.
    • actionName

      public XrActionCreateInfo.Buffer actionName(ByteBuffer value)
      Copies the specified encoded string to the actionName field.
    • actionType

      public XrActionCreateInfo.Buffer actionType(int value)
      Sets the specified value to the actionType field.
    • countSubactionPaths

      public XrActionCreateInfo.Buffer countSubactionPaths(int value)
      Sets the specified value to the countSubactionPaths field.
    • subactionPaths

      public XrActionCreateInfo.Buffer subactionPaths(@Nullable LongBuffer value)
      Sets the address of the specified LongBuffer to the subactionPaths field.
    • localizedActionName

      public XrActionCreateInfo.Buffer localizedActionName(ByteBuffer value)
      Copies the specified encoded string to the localizedActionName field.