Package org.lwjgl.sdl

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

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

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

      public short vendor_id()
      Returns:
      the value of the vendor_id field.
    • product_id

      public short product_id()
      Returns:
      the value of the product_id field.
    • serial_number

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

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

      public short release_number()
      Returns:
      the value of the release_number field.
    • manufacturer_string

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

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

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

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

      public short usage_page()
      Returns:
      the value of the usage_page field.
    • usage

      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

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

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

      Sets the address of the specified encoded string to the path field.
    • vendor_id

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

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

      public SDL_hid_device_info.Buffer serial_number(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(short value)
      Sets the specified value to the release_number field.
    • manufacturer_string

      public SDL_hid_device_info.Buffer manufacturer_string(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(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(short value)
      Sets the specified value to the usage_page field.
    • usage

      public SDL_hid_device_info.Buffer usage(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(int value)
      Sets the specified value to the bus_type field.
    • next

      Sets the address of the specified SDL_hid_device_info to the next field.