Package org.lwjgl.openvr
Class AppOverrideKeys
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<AppOverrideKeys>
org.lwjgl.openvr.AppOverrideKeys
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class AppOverrideKeys
extends org.lwjgl.system.Struct<AppOverrideKeys>
implements org.lwjgl.system.NativeResource
Layout
struct AppOverrideKeys_t {
char * pchKey;
char * pchValue;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionAppOverrideKeys(ByteBuffer container) Creates aAppOverrideKeysinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AppOverrideKeyscalloc()Returns a newAppOverrideKeysinstance allocated withmemCalloc.static AppOverrideKeys.Buffercalloc(int capacity) Returns a newAppOverrideKeys.Bufferinstance allocated withmemCalloc.static AppOverrideKeys.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newAppOverrideKeys.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AppOverrideKeyscalloc(org.lwjgl.system.MemoryStack stack) Returns a newAppOverrideKeysinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AppOverrideKeysDeprecated.static AppOverrideKeys.BuffercallocStack(int capacity) Deprecated.static AppOverrideKeys.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static AppOverrideKeyscallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static AppOverrideKeyscreate()Returns a newAppOverrideKeysinstance allocated withBufferUtils.static AppOverrideKeys.Buffercreate(int capacity) Returns a newAppOverrideKeys.Bufferinstance allocated withBufferUtils.static AppOverrideKeyscreate(long address) Returns a newAppOverrideKeysinstance for the specified memory address.static AppOverrideKeys.Buffercreate(long address, int capacity) Create aAppOverrideKeys.Bufferinstance at the specified memory.static @Nullable AppOverrideKeyscreateSafe(long address) static @Nullable AppOverrideKeys.BuffercreateSafe(long address, int capacity) static AppOverrideKeysmalloc()Returns a newAppOverrideKeysinstance allocated withmemAlloc.static AppOverrideKeys.Buffermalloc(int capacity) Returns a newAppOverrideKeys.Bufferinstance allocated withmemAlloc.static AppOverrideKeys.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newAppOverrideKeys.Bufferinstance allocated on the specifiedMemoryStack.static AppOverrideKeysmalloc(org.lwjgl.system.MemoryStack stack) Returns a newAppOverrideKeysinstance allocated on the specifiedMemoryStack.static AppOverrideKeysDeprecated.static AppOverrideKeys.BuffermallocStack(int capacity) Deprecated.static AppOverrideKeys.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static AppOverrideKeysmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static ByteBuffernpchKey(long struct) Unsafe version ofpchKey().static voidnpchKey(long struct, ByteBuffer value) Unsafe version ofpchKey.static StringnpchKeyString(long struct) Unsafe version ofpchKeyString().static ByteBuffernpchValue(long struct, int capacity) Unsafe version ofpchValue.static voidnpchValue(long struct, ByteBuffer value) Unsafe version ofpchValue.pchKey()pchKey(ByteBuffer value) Sets the address of the specified encoded string to thepchKeyfield.pchValue(int capacity) pchValue(ByteBuffer value) Sets the address of the specifiedByteBufferto thepchValuefield.set(ByteBuffer pchKey, ByteBuffer pchValue) Initializes this struct with the specified values.set(AppOverrideKeys src) Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
PCHKEY
public static final int PCHKEYThe struct member offsets. -
PCHVALUE
public static final int PCHVALUEThe struct member offsets.
-
-
Constructor Details
-
AppOverrideKeys
Creates aAppOverrideKeysinstance at the current position of the specifiedByteBuffercontainer. 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<AppOverrideKeys>
-
pchKey
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thepchKeyfield.
-
pchKeyString
- Returns:
- the null-terminated string pointed to by the
pchKeyfield.
-
pchValue
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
ByteBufferview of the data pointed to by thepchValuefield.
-
pchKey
Sets the address of the specified encoded string to thepchKeyfield. -
pchValue
Sets the address of the specifiedByteBufferto thepchValuefield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newAppOverrideKeysinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAppOverrideKeysinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAppOverrideKeysinstance allocated withBufferUtils. -
create
Returns a newAppOverrideKeysinstance for the specified memory address. -
createSafe
-
malloc
Returns a newAppOverrideKeys.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAppOverrideKeys.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAppOverrideKeys.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAppOverrideKeys.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static AppOverrideKeys.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static AppOverrideKeys.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newAppOverrideKeysinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAppOverrideKeysinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAppOverrideKeys.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAppOverrideKeys.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
npchKey
Unsafe version ofpchKey(). -
npchKeyString
Unsafe version ofpchKeyString(). -
npchValue
Unsafe version ofpchValue. -
npchKey
Unsafe version ofpchKey. -
npchValue
Unsafe version ofpchValue. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-