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.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionintbus_type()bus_type(int value) Sets the specified value to thebus_typefield.intinterface_class(int value) Sets the specified value to theinterface_classfield.intinterface_number(int value) Sets the specified value to theinterface_numberfield.intinterface_protocol(int value) Sets the specified value to theinterface_protocolfield.intinterface_subclass(int value) Sets the specified value to theinterface_subclassfield.manufacturer_string(ByteBuffer value) Sets the address of the specified encoded string to themanufacturer_stringfield.next()next(SDL_hid_device_info value) Sets the address of the specifiedSDL_hid_device_infoto thenextfield.path()path(ByteBuffer value) Sets the address of the specified encoded string to thepathfield.shortproduct_id(short value) Sets the specified value to theproduct_idfield.product_string(ByteBuffer value) Sets the address of the specified encoded string to theproduct_stringfield.shortrelease_number(short value) Sets the specified value to therelease_numberfield.serial_number(ByteBuffer value) Sets the address of the specified encoded string to theserial_numberfield.shortusage()usage(short value) Sets the specified value to theusagefield.shortusage_page(short value) Sets the specified value to theusage_pagefield.shortvendor_id(short value) Sets the specified value to thevendor_idfield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods 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, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newSDL_hid_device_info.Bufferinstance 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
ByteBufferview of the null-terminated string pointed to by thepathfield.
-
pathString
- Returns:
- the null-terminated string pointed to by the
pathfield.
-
vendor_id
public short vendor_id()- Returns:
- the value of the
vendor_idfield.
-
product_id
public short product_id()- Returns:
- the value of the
product_idfield.
-
serial_number
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by theserial_numberfield.
-
serial_numberString
- Returns:
- the null-terminated string pointed to by the
serial_numberfield.
-
release_number
public short release_number()- Returns:
- the value of the
release_numberfield.
-
manufacturer_string
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by themanufacturer_stringfield.
-
manufacturer_stringString
- Returns:
- the null-terminated string pointed to by the
manufacturer_stringfield.
-
product_string
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by theproduct_stringfield.
-
product_stringString
- Returns:
- the null-terminated string pointed to by the
product_stringfield.
-
usage_page
public short usage_page()- Returns:
- the value of the
usage_pagefield.
-
usage
public short usage()- Returns:
- the value of the
usagefield.
-
interface_number
public int interface_number()- Returns:
- the value of the
interface_numberfield.
-
interface_class
public int interface_class()- Returns:
- the value of the
interface_classfield.
-
interface_subclass
public int interface_subclass()- Returns:
- the value of the
interface_subclassfield.
-
interface_protocol
public int interface_protocol()- Returns:
- the value of the
interface_protocolfield.
-
bus_type
public int bus_type()- Returns:
- the value of the
bus_typefield.
-
next
- Returns:
- a
SDL_hid_device_infoview of the struct pointed to by thenextfield.
-
path
Sets the address of the specified encoded string to thepathfield. -
vendor_id
Sets the specified value to thevendor_idfield. -
product_id
Sets the specified value to theproduct_idfield. -
serial_number
Sets the address of the specified encoded string to theserial_numberfield. -
release_number
Sets the specified value to therelease_numberfield. -
manufacturer_string
Sets the address of the specified encoded string to themanufacturer_stringfield. -
product_string
Sets the address of the specified encoded string to theproduct_stringfield. -
usage_page
Sets the specified value to theusage_pagefield. -
usage
Sets the specified value to theusagefield. -
interface_number
Sets the specified value to theinterface_numberfield. -
interface_class
Sets the specified value to theinterface_classfield. -
interface_subclass
Sets the specified value to theinterface_subclassfield. -
interface_protocol
Sets the specified value to theinterface_protocolfield. -
bus_type
Sets the specified value to thebus_typefield. -
next
Sets the address of the specifiedSDL_hid_device_infoto thenextfield.
-