Class SDL_hid_device_info.Buffer

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

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

    • Buffer

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

    • path

      @NativeType("char *") public ByteBuffer path()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the path field.
    • pathString

      @NativeType("char *") public String pathString()
      Returns:
      the null-terminated string pointed to by the path field.
    • vendor_id

      @NativeType("unsigned short") public short vendor_id()
      Returns:
      the value of the vendor_id field.
    • product_id

      @NativeType("unsigned short") public short product_id()
      Returns:
      the value of the product_id field.
    • serial_number

      @NativeType("wchar_t *") public ByteBuffer serial_number()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the serial_number field.
    • serial_numberString

      @NativeType("wchar_t *") public String serial_numberString()
      Returns:
      the null-terminated string pointed to by the serial_number field.
    • release_number

      @NativeType("unsigned short") public short release_number()
      Returns:
      the value of the release_number field.
    • manufacturer_string

      @NativeType("wchar_t *") public ByteBuffer manufacturer_string()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the manufacturer_string field.
    • manufacturer_stringString

      @NativeType("wchar_t *") public String manufacturer_stringString()
      Returns:
      the null-terminated string pointed to by the manufacturer_string field.
    • product_string

      @NativeType("wchar_t *") public ByteBuffer product_string()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the product_string field.
    • product_stringString

      @NativeType("wchar_t *") public String product_stringString()
      Returns:
      the null-terminated string pointed to by the product_string field.
    • usage_page

      @NativeType("unsigned short") public short usage_page()
      Returns:
      the value of the usage_page field.
    • usage

      @NativeType("unsigned short") public short usage()
      Returns:
      the value of the usage field.
    • interface_number

      public int interface_number()
      Returns:
      the value of the interface_number field.
    • interface_class

      public int interface_class()
      Returns:
      the value of the interface_class field.
    • interface_subclass

      public int interface_subclass()
      Returns:
      the value of the interface_subclass field.
    • interface_protocol

      public int interface_protocol()
      Returns:
      the value of the interface_protocol field.
    • bus_type

      @NativeType("SDL_hid_bus_type") public int bus_type()
      Returns:
      the value of the bus_type field.
    • next

      @NativeType("SDL_hid_device_info *") public SDL_hid_device_info next()
      Returns:
      a SDL_hid_device_info view of the struct pointed to by the next field.
    • path

      public SDL_hid_device_info.Buffer path(@NativeType("char *") ByteBuffer value)
      Sets the address of the specified encoded string to the path field.
    • vendor_id

      public SDL_hid_device_info.Buffer vendor_id(@NativeType("unsigned short") short value)
      Sets the specified value to the vendor_id field.
    • product_id

      public SDL_hid_device_info.Buffer product_id(@NativeType("unsigned short") short value)
      Sets the specified value to the product_id field.
    • serial_number

      public SDL_hid_device_info.Buffer serial_number(@NativeType("wchar_t *") ByteBuffer value)
      Sets the address of the specified encoded string to the serial_number field.
    • release_number

      public SDL_hid_device_info.Buffer release_number(@NativeType("unsigned short") short value)
      Sets the specified value to the release_number field.
    • manufacturer_string

      public SDL_hid_device_info.Buffer manufacturer_string(@NativeType("wchar_t *") ByteBuffer value)
      Sets the address of the specified encoded string to the manufacturer_string field.
    • product_string

      public SDL_hid_device_info.Buffer product_string(@NativeType("wchar_t *") ByteBuffer value)
      Sets the address of the specified encoded string to the product_string field.
    • usage_page

      public SDL_hid_device_info.Buffer usage_page(@NativeType("unsigned short") short value)
      Sets the specified value to the usage_page field.
    • usage

      public SDL_hid_device_info.Buffer usage(@NativeType("unsigned short") short value)
      Sets the specified value to the usage field.
    • interface_number

      public SDL_hid_device_info.Buffer interface_number(int value)
      Sets the specified value to the interface_number field.
    • interface_class

      public SDL_hid_device_info.Buffer interface_class(int value)
      Sets the specified value to the interface_class field.
    • interface_subclass

      public SDL_hid_device_info.Buffer interface_subclass(int value)
      Sets the specified value to the interface_subclass field.
    • interface_protocol

      public SDL_hid_device_info.Buffer interface_protocol(int value)
      Sets the specified value to the interface_protocol field.
    • bus_type

      public SDL_hid_device_info.Buffer bus_type(@NativeType("SDL_hid_bus_type") int value)
      Sets the specified value to the bus_type field.
    • next

      public SDL_hid_device_info.Buffer next(@NativeType("SDL_hid_device_info *") SDL_hid_device_info value)
      Sets the address of the specified SDL_hid_device_info to the next field.