Class InputBindingInfo

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

    public class InputBindingInfo
    extends Struct
    implements NativeResource

    Layout

    
     struct InputBindingInfo_t {
         char rchDevicePathName[128];
         char rchInputPathName[128];
         char rchModeName[128];
         char rchSlotName[128];
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • RCHDEVICEPATHNAME, RCHINPUTPATHNAME, RCHMODENAME, RCHSLOTNAME

        The struct member offsets.
    • Constructor Detail

      • InputBindingInfo

        public InputBindingInfo​(java.nio.ByteBuffer container)
        Creates a InputBindingInfo 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
      • rchDevicePathName

        public java.nio.ByteBuffer rchDevicePathName()
        Returns a ByteBuffer view of the rchDevicePathName field.
      • rchDevicePathNameString

        public java.lang.String rchDevicePathNameString()
        Decodes the null-terminated string stored in the rchDevicePathName field.
      • rchInputPathName

        public java.nio.ByteBuffer rchInputPathName()
        Returns a ByteBuffer view of the rchInputPathName field.
      • rchInputPathNameString

        public java.lang.String rchInputPathNameString()
        Decodes the null-terminated string stored in the rchInputPathName field.
      • rchModeName

        public java.nio.ByteBuffer rchModeName()
        Returns a ByteBuffer view of the rchModeName field.
      • rchModeNameString

        public java.lang.String rchModeNameString()
        Decodes the null-terminated string stored in the rchModeName field.
      • rchSlotName

        public java.nio.ByteBuffer rchSlotName()
        Returns a ByteBuffer view of the rchSlotName field.
      • rchSlotNameString

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

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

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

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

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

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

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

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

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

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

        public static java.nio.ByteBuffer nrchDevicePathName​(long struct)
        Unsafe version of rchDevicePathName().
      • nrchDevicePathNameString

        public static java.lang.String nrchDevicePathNameString​(long struct)
        Unsafe version of rchDevicePathNameString().
      • nrchInputPathName

        public static java.nio.ByteBuffer nrchInputPathName​(long struct)
        Unsafe version of rchInputPathName().
      • nrchInputPathNameString

        public static java.lang.String nrchInputPathNameString​(long struct)
        Unsafe version of rchInputPathNameString().
      • nrchModeName

        public static java.nio.ByteBuffer nrchModeName​(long struct)
        Unsafe version of rchModeName().
      • nrchModeNameString

        public static java.lang.String nrchModeNameString​(long struct)
        Unsafe version of rchModeNameString().
      • nrchSlotName

        public static java.nio.ByteBuffer nrchSlotName​(long struct)
        Unsafe version of rchSlotName().
      • nrchSlotNameString

        public static java.lang.String nrchSlotNameString​(long struct)
        Unsafe version of rchSlotNameString().