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.NativeResource
Layout
struct AppOverrideKeys_t { char * pchKey; char * pchValue; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AppOverrideKeys.Buffer
An array ofAppOverrideKeys
structs.
-
Constructor Summary
Constructors Constructor Description AppOverrideKeys(java.nio.ByteBuffer container)
Creates aAppOverrideKeys
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AppOverrideKeys
calloc()
Returns a newAppOverrideKeys
instance allocated withmemCalloc
.static AppOverrideKeys.Buffer
calloc(int capacity)
Returns a newAppOverrideKeys.Buffer
instance allocated withmemCalloc
.static AppOverrideKeys
callocStack()
Returns a newAppOverrideKeys
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static AppOverrideKeys.Buffer
callocStack(int capacity)
Returns a newAppOverrideKeys.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static AppOverrideKeys.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAppOverrideKeys.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AppOverrideKeys
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAppOverrideKeys
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AppOverrideKeys
create()
Returns a newAppOverrideKeys
instance allocated withBufferUtils
.static AppOverrideKeys.Buffer
create(int capacity)
Returns a newAppOverrideKeys.Buffer
instance allocated withBufferUtils
.static AppOverrideKeys
create(long address)
Returns a newAppOverrideKeys
instance for the specified memory address.static AppOverrideKeys.Buffer
create(long address, int capacity)
Create aAppOverrideKeys.Buffer
instance at the specified memory.static AppOverrideKeys
createSafe(long address)
static AppOverrideKeys.Buffer
createSafe(long address, int capacity)
static AppOverrideKeys
malloc()
Returns a newAppOverrideKeys
instance allocated withmemAlloc
.static AppOverrideKeys.Buffer
malloc(int capacity)
Returns a newAppOverrideKeys.Buffer
instance allocated withmemAlloc
.static AppOverrideKeys
mallocStack()
Returns a newAppOverrideKeys
instance allocated on the thread-localMemoryStack
.static AppOverrideKeys.Buffer
mallocStack(int capacity)
Returns a newAppOverrideKeys.Buffer
instance allocated on the thread-localMemoryStack
.static AppOverrideKeys.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAppOverrideKeys.Buffer
instance allocated on the specifiedMemoryStack
.static AppOverrideKeys
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAppOverrideKeys
instance allocated on the specifiedMemoryStack
.static java.nio.ByteBuffer
npchKey(long struct)
Unsafe version ofpchKey()
.static void
npchKey(long struct, java.nio.ByteBuffer value)
Unsafe version ofpchKey
.static java.lang.String
npchKeyString(long struct)
Unsafe version ofpchKeyString()
.static java.nio.ByteBuffer
npchValue(long struct, int capacity)
Unsafe version ofpchValue
.static void
npchValue(long struct, java.nio.ByteBuffer value)
Unsafe version ofpchValue
.java.nio.ByteBuffer
pchKey()
Returns aByteBuffer
view of the null-terminated string pointed to by thepchKey
field.AppOverrideKeys
pchKey(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to thepchKey
field.java.lang.String
pchKeyString()
Decodes the null-terminated string pointed to by thepchKey
field.java.nio.ByteBuffer
pchValue(int capacity)
Returns aByteBuffer
view of the data pointed to by thepchValue
field.AppOverrideKeys
pchValue(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thepchValue
field.AppOverrideKeys
set(java.nio.ByteBuffer pchKey, java.nio.ByteBuffer pchValue)
Initializes this struct with the specified values.AppOverrideKeys
set(AppOverrideKeys src)
Copies the specified struct data to this struct.int
sizeof()
static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(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 aAppOverrideKeys
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
pchKey
public java.nio.ByteBuffer pchKey()
Returns aByteBuffer
view of the null-terminated string pointed to by thepchKey
field.
-
pchKeyString
public java.lang.String pchKeyString()
Decodes the null-terminated string pointed to by thepchKey
field.
-
pchValue
public java.nio.ByteBuffer pchValue(int capacity)
Returns aByteBuffer
view of the data pointed to by thepchValue
field.- 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 thepchKey
field.
-
pchValue
public AppOverrideKeys pchValue(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thepchValue
field.
-
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 newAppOverrideKeys
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static AppOverrideKeys calloc()
Returns a newAppOverrideKeys
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static AppOverrideKeys create()
Returns a newAppOverrideKeys
instance allocated withBufferUtils
.
-
create
public static AppOverrideKeys create(long address)
Returns a newAppOverrideKeys
instance for the specified memory address.
-
createSafe
@Nullable public static AppOverrideKeys createSafe(long address)
-
malloc
public static AppOverrideKeys.Buffer malloc(int capacity)
Returns a newAppOverrideKeys.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static AppOverrideKeys.Buffer calloc(int capacity)
Returns a newAppOverrideKeys.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static AppOverrideKeys.Buffer create(int capacity)
Returns a newAppOverrideKeys.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static AppOverrideKeys.Buffer create(long address, int capacity)
Create aAppOverrideKeys.Buffer
instance 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 newAppOverrideKeys
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static AppOverrideKeys callocStack()
Returns a newAppOverrideKeys
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static AppOverrideKeys mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAppOverrideKeys
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static AppOverrideKeys callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAppOverrideKeys
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static AppOverrideKeys.Buffer callocStack(int capacity)
Returns a newAppOverrideKeys.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
-
-