Class XrApplicationInfo.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new XrApplicationInfo.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 XrApplicationInfo.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

    • applicationName

      public ByteBuffer applicationName()
      Returns:
      a ByteBuffer view of the applicationName field.
    • applicationNameString

      public String applicationNameString()
      Returns:
      the null-terminated string stored in the applicationName field.
    • applicationVersion

      public int applicationVersion()
      Returns:
      the value of the applicationVersion field.
    • engineName

      public ByteBuffer engineName()
      Returns:
      a ByteBuffer view of the engineName field.
    • engineNameString

      public String engineNameString()
      Returns:
      the null-terminated string stored in the engineName field.
    • engineVersion

      public int engineVersion()
      Returns:
      the value of the engineVersion field.
    • apiVersion

      public long apiVersion()
      Returns:
      the value of the apiVersion field.
    • applicationName

      public XrApplicationInfo.Buffer applicationName(ByteBuffer value)
      Copies the specified encoded string to the applicationName field.
    • applicationVersion

      public XrApplicationInfo.Buffer applicationVersion(int value)
      Sets the specified value to the applicationVersion field.
    • engineName

      public XrApplicationInfo.Buffer engineName(ByteBuffer value)
      Copies the specified encoded string to the engineName field.
    • engineVersion

      public XrApplicationInfo.Buffer engineVersion(int value)
      Sets the specified value to the engineVersion field.
    • apiVersion

      public XrApplicationInfo.Buffer apiVersion(long value)
      Sets the specified value to the apiVersion field.