Class InputOriginInfo

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

    public class InputOriginInfo
    extends Struct
    implements NativeResource

    Layout

    
     struct InputOriginInfo_t {
         VRInputValueHandle_t devicePath;
         TrackedDeviceIndex_t trackedDeviceIndex;
         char rchRenderModelComponentName[128];
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • DEVICEPATH, TRACKEDDEVICEINDEX, RCHRENDERMODELCOMPONENTNAME

        The struct member offsets.
    • Constructor Detail

      • InputOriginInfo

        public InputOriginInfo​(java.nio.ByteBuffer container)
        Creates a InputOriginInfo 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • devicePath

        public long devicePath()
        Returns the value of the devicePath field.
      • trackedDeviceIndex

        public int trackedDeviceIndex()
        Returns the value of the trackedDeviceIndex field.
      • rchRenderModelComponentName

        public java.nio.ByteBuffer rchRenderModelComponentName()
        Returns a ByteBuffer view of the rchRenderModelComponentName field.
      • rchRenderModelComponentNameString

        public java.lang.String rchRenderModelComponentNameString()
        Decodes the null-terminated string stored in the rchRenderModelComponentName field.
      • malloc

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

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

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

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

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

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

        public static InputOriginInfo mallocStack()
        Returns a new InputOriginInfo instance allocated on the thread-local MemoryStack.
      • callocStack

        public static InputOriginInfo callocStack()
        Returns a new InputOriginInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static InputOriginInfo mallocStack​(MemoryStack stack)
        Returns a new InputOriginInfo instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

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

        public static long ndevicePath​(long struct)
        Unsafe version of devicePath().
      • ntrackedDeviceIndex

        public static int ntrackedDeviceIndex​(long struct)
        Unsafe version of trackedDeviceIndex().
      • nrchRenderModelComponentName

        public static java.nio.ByteBuffer nrchRenderModelComponentName​(long struct)
      • nrchRenderModelComponentNameString

        public static java.lang.String nrchRenderModelComponentNameString​(long struct)