Package org.lwjgl.sdl
Class SDL_hid_device_info.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SDL_hid_device_info.Buffer>
org.lwjgl.system.StructBuffer<SDL_hid_device_info,SDL_hid_device_info.Buffer>
org.lwjgl.sdl.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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newSDL_hid_device_info.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionint
bus_type()
bus_type
(int value) Sets the specified value to thebus_type
field.int
interface_class
(int value) Sets the specified value to theinterface_class
field.int
interface_number
(int value) Sets the specified value to theinterface_number
field.int
interface_protocol
(int value) Sets the specified value to theinterface_protocol
field.int
interface_subclass
(int value) Sets the specified value to theinterface_subclass
field.manufacturer_string
(ByteBuffer value) Sets the address of the specified encoded string to themanufacturer_string
field.next()
next
(SDL_hid_device_info value) Sets the address of the specifiedSDL_hid_device_info
to thenext
field.path()
path
(ByteBuffer value) Sets the address of the specified encoded string to thepath
field.short
product_id
(short value) Sets the specified value to theproduct_id
field.product_string
(ByteBuffer value) Sets the address of the specified encoded string to theproduct_string
field.short
release_number
(short value) Sets the specified value to therelease_number
field.serial_number
(ByteBuffer value) Sets the address of the specified encoded string to theserial_number
field.short
usage()
usage
(short value) Sets the specified value to theusage
field.short
usage_page
(short value) Sets the specified value to theusage_page
field.short
vendor_id
(short value) Sets the specified value to thevendor_id
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newSDL_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
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thepath
field.
-
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
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by theserial_number
field.
-
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
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by themanufacturer_string
field.
-
manufacturer_stringString
- Returns:
- the null-terminated string pointed to by the
manufacturer_string
field.
-
product_string
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by theproduct_string
field.
-
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
- Returns:
- a
SDL_hid_device_info
view of the struct pointed to by thenext
field.
-
path
Sets the address of the specified encoded string to thepath
field. -
vendor_id
Sets the specified value to thevendor_id
field. -
product_id
Sets the specified value to theproduct_id
field. -
serial_number
Sets the address of the specified encoded string to theserial_number
field. -
release_number
Sets the specified value to therelease_number
field. -
manufacturer_string
Sets the address of the specified encoded string to themanufacturer_string
field. -
product_string
Sets the address of the specified encoded string to theproduct_string
field. -
usage_page
Sets the specified value to theusage_page
field. -
usage
Sets the specified value to theusage
field. -
interface_number
Sets the specified value to theinterface_number
field. -
interface_class
Sets the specified value to theinterface_class
field. -
interface_subclass
Sets the specified value to theinterface_subclass
field. -
interface_protocol
Sets the specified value to theinterface_protocol
field. -
bus_type
Sets the specified value to thebus_type
field. -
next
Sets the address of the specifiedSDL_hid_device_info
to thenext
field.
-