Class XrUuidEXT

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class XrUuidEXT
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Universally Unique Identifier.
    Description

    The structure is composed of 16 octets, with the size and order of the fields defined in RFC 4122 section 4.1.2.

    Valid Usage (Implicit)

    Layout

    
     struct XrUuidEXT {
         uint8_t data()[XR_UUID_SIZE_EXT];
     }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  XrUuidEXT.Buffer
      An array of XrUuidEXT structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
      • Nested classes/interfaces inherited from class org.lwjgl.system.Struct

        org.lwjgl.system.Struct.StructValidation
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALIGNOF
      The struct alignment in bytes.
      static int DATA
      The struct member offsets.
      static int SIZEOF
      The struct size in bytes.
      • Fields inherited from interface org.lwjgl.system.Pointer

        BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      XrUuidEXT​(java.nio.ByteBuffer container)
      Creates a XrUuidEXT instance at the current position of the specified ByteBuffer container.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static XrUuidEXT calloc()
      Returns a new XrUuidEXT instance allocated with memCalloc.
      static XrUuidEXT.Buffer calloc​(int capacity)
      Returns a new XrUuidEXT.Buffer instance allocated with memCalloc.
      static XrUuidEXT.Buffer calloc​(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new XrUuidEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      static XrUuidEXT calloc​(org.lwjgl.system.MemoryStack stack)
      Returns a new XrUuidEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.
      static XrUuidEXT create()
      Returns a new XrUuidEXT instance allocated with BufferUtils.
      static XrUuidEXT.Buffer create​(int capacity)
      Returns a new XrUuidEXT.Buffer instance allocated with BufferUtils.
      static XrUuidEXT create​(long address)
      Returns a new XrUuidEXT instance for the specified memory address.
      static XrUuidEXT.Buffer create​(long address, int capacity)
      Create a XrUuidEXT.Buffer instance at the specified memory.
      static XrUuidEXT createSafe​(long address)
      Like create, but returns null if address is NULL.
      static XrUuidEXT.Buffer createSafe​(long address, int capacity)
      Like create, but returns null if address is NULL.
      java.nio.ByteBuffer data()
      a 128-bit Universally Unique Identifier.
      byte data​(int index)
      a 128-bit Universally Unique Identifier.
      XrUuidEXT data​(int index, byte value)
      Sets the specified value at the specified index of the data() field.
      XrUuidEXT data​(java.nio.ByteBuffer value)
      Copies the specified ByteBuffer to the data() field.
      static XrUuidEXT malloc()
      Returns a new XrUuidEXT instance allocated with memAlloc.
      static XrUuidEXT.Buffer malloc​(int capacity)
      Returns a new XrUuidEXT.Buffer instance allocated with memAlloc.
      static XrUuidEXT.Buffer malloc​(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new XrUuidEXT.Buffer instance allocated on the specified MemoryStack.
      static XrUuidEXT malloc​(org.lwjgl.system.MemoryStack stack)
      Returns a new XrUuidEXT instance allocated on the specified MemoryStack.
      static java.nio.ByteBuffer ndata​(long struct)
      Unsafe version of data().
      static byte ndata​(long struct, int index)
      Unsafe version of data.
      static void ndata​(long struct, int index, byte value)
      Unsafe version of data.
      static void ndata​(long struct, java.nio.ByteBuffer value)
      Unsafe version of data.
      XrUuidEXT set​(XrUuidEXT src)
      Copies the specified struct data to this struct.
      int sizeof()  
      • Methods inherited from interface org.lwjgl.system.NativeResource

        close, free
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from class org.lwjgl.system.Pointer.Default

        address, equals, hashCode, toString
      • Methods inherited from class org.lwjgl.system.Struct

        clear, free, isNull, validate
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • DATA

        The struct member offsets.
    • Constructor Detail

      • XrUuidEXT

        public XrUuidEXT​(java.nio.ByteBuffer container)
        Creates a XrUuidEXT 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • data

        public java.nio.ByteBuffer data()
        
        public byte data​(int index)
        
        a 128-bit Universally Unique Identifier.
      • data

        public XrUuidEXT data​(java.nio.ByteBuffer value)
        Copies the specified ByteBuffer to the data() field.
      • data

        public XrUuidEXT data​(int index,
                              byte value)
        Sets the specified value at the specified index of the data() field.
      • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static java.nio.ByteBuffer ndata​(long struct)
        Unsafe version of data().
      • ndata

        public static byte ndata​(long struct,
                                 int index)
        Unsafe version of data.
      • ndata

        public static void ndata​(long struct,
                                 java.nio.ByteBuffer value)
        Unsafe version of data.
      • ndata

        public static void ndata​(long struct,
                                 int index,
                                 byte value)
        Unsafe version of data.