Package org.lwjgl.openvr
Class AppOverrideKeys
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.AppOverrideKeys
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class AppOverrideKeys extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct AppOverrideKeys_t { char * pchKey; char * pchValue; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAppOverrideKeys.BufferAn array ofAppOverrideKeysstructs.
-
Constructor Summary
Constructors Constructor Description AppOverrideKeys(java.nio.ByteBuffer container)Creates aAppOverrideKeysinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AppOverrideKeyscalloc()Returns a newAppOverrideKeysinstance allocated withmemCalloc.static AppOverrideKeys.Buffercalloc(int capacity)Returns a newAppOverrideKeys.Bufferinstance allocated withmemCalloc.static AppOverrideKeyscallocStack()Returns a newAppOverrideKeysinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static AppOverrideKeys.BuffercallocStack(int capacity)Returns a newAppOverrideKeys.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static AppOverrideKeys.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAppOverrideKeys.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AppOverrideKeyscallocStack(org.lwjgl.system.MemoryStack stack)Returns a newAppOverrideKeysinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 AppOverrideKeyscreateSafe(long address)static 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 AppOverrideKeysmallocStack()Returns a newAppOverrideKeysinstance allocated on the thread-localMemoryStack.static AppOverrideKeys.BuffermallocStack(int capacity)Returns a newAppOverrideKeys.Bufferinstance allocated on the thread-localMemoryStack.static AppOverrideKeys.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAppOverrideKeys.Bufferinstance allocated on the specifiedMemoryStack.static AppOverrideKeysmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newAppOverrideKeysinstance allocated on the specifiedMemoryStack.static java.nio.ByteBuffernpchKey(long struct)Unsafe version ofpchKey().static voidnpchKey(long struct, java.nio.ByteBuffer value)Unsafe version ofpchKey.static java.lang.StringnpchKeyString(long struct)Unsafe version ofpchKeyString().static java.nio.ByteBuffernpchValue(long struct, int capacity)Unsafe version ofpchValue.static voidnpchValue(long struct, java.nio.ByteBuffer value)Unsafe version ofpchValue.java.nio.ByteBufferpchKey()Returns aByteBufferview of the null-terminated string pointed to by thepchKeyfield.AppOverrideKeyspchKey(java.nio.ByteBuffer value)Sets the address of the specified encoded string to thepchKeyfield.java.lang.StringpchKeyString()Decodes the null-terminated string pointed to by thepchKeyfield.java.nio.ByteBufferpchValue(int capacity)Returns aByteBufferview of the data pointed to by thepchValuefield.AppOverrideKeyspchValue(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto thepchValuefield.AppOverrideKeysset(java.nio.ByteBuffer pchKey, java.nio.ByteBuffer pchValue)Initializes this struct with the specified values.AppOverrideKeysset(AppOverrideKeys src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
AppOverrideKeys
public AppOverrideKeys(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
pchKey
public java.nio.ByteBuffer pchKey()
Returns aByteBufferview of the null-terminated string pointed to by thepchKeyfield.
-
pchKeyString
public java.lang.String pchKeyString()
Decodes the null-terminated string pointed to by thepchKeyfield.
-
pchValue
public java.nio.ByteBuffer pchValue(int capacity)
Returns aByteBufferview of the data pointed to by thepchValuefield.- Parameters:
capacity- the number of elements in the returned buffer
-
pchKey
public AppOverrideKeys pchKey(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to thepchKeyfield.
-
pchValue
public AppOverrideKeys pchValue(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto thepchValuefield.
-
set
public AppOverrideKeys set(java.nio.ByteBuffer pchKey, java.nio.ByteBuffer pchValue)
Initializes this struct with the specified values.
-
set
public AppOverrideKeys set(AppOverrideKeys src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static AppOverrideKeys malloc()
Returns a newAppOverrideKeysinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static AppOverrideKeys calloc()
Returns a newAppOverrideKeysinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static AppOverrideKeys create()
Returns a newAppOverrideKeysinstance allocated withBufferUtils.
-
create
public static AppOverrideKeys create(long address)
Returns a newAppOverrideKeysinstance for the specified memory address.
-
createSafe
@Nullable public static AppOverrideKeys createSafe(long address)
-
malloc
public static AppOverrideKeys.Buffer malloc(int capacity)
Returns a newAppOverrideKeys.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static AppOverrideKeys.Buffer calloc(int capacity)
Returns a newAppOverrideKeys.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static AppOverrideKeys.Buffer create(int capacity)
Returns a newAppOverrideKeys.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static AppOverrideKeys.Buffer create(long address, int capacity)
Create aAppOverrideKeys.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static AppOverrideKeys.Buffer createSafe(long address, int capacity)
-
mallocStack
public static AppOverrideKeys mallocStack()
Returns a newAppOverrideKeysinstance allocated on the thread-localMemoryStack.
-
callocStack
public static AppOverrideKeys callocStack()
Returns a newAppOverrideKeysinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static AppOverrideKeys mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAppOverrideKeysinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static AppOverrideKeys callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAppOverrideKeysinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static AppOverrideKeys.Buffer mallocStack(int capacity)
Returns a newAppOverrideKeys.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static AppOverrideKeys.Buffer callocStack(int capacity)
Returns a newAppOverrideKeys.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static AppOverrideKeys.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAppOverrideKeys.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static AppOverrideKeys.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAppOverrideKeys.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
npchKey
public static java.nio.ByteBuffer npchKey(long struct)
Unsafe version ofpchKey().
-
npchKeyString
public static java.lang.String npchKeyString(long struct)
Unsafe version ofpchKeyString().
-
npchValue
public static java.nio.ByteBuffer npchValue(long struct, int capacity)Unsafe version ofpchValue.
-
npchKey
public static void npchKey(long struct, java.nio.ByteBuffer value)Unsafe version ofpchKey.
-
npchValue
public static void npchValue(long struct, java.nio.ByteBuffer value)Unsafe version ofpchValue.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-