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 Deprecated 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 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 AppOverrideKeyscallocStack()Deprecated.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 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 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 AppOverrideKeysmallocStack()Deprecated.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 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()AppOverrideKeyspchKey(java.nio.ByteBuffer value)Sets the address of the specified encoded string to thepchKeyfield.java.lang.StringpchKeyString()java.nio.ByteBufferpchValue(int capacity)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.
-
-
-
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:
- a
ByteBufferview of the null-terminated string pointed to by thepchKeyfield.
-
pchKeyString
public java.lang.String pchKeyString()
- Returns:
- the null-terminated string pointed to by the
pchKeyfield.
-
pchValue
public java.nio.ByteBuffer pchValue(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
ByteBufferview of the data pointed to by thepchValuefield.
-
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
@Deprecated public static AppOverrideKeys mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AppOverrideKeys callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AppOverrideKeys mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AppOverrideKeys callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AppOverrideKeys.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static AppOverrideKeys.Buffer callocStack(int capacity)
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
public static AppOverrideKeys malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAppOverrideKeysinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static AppOverrideKeys calloc(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
-
malloc
public static AppOverrideKeys.Buffer malloc(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
-
calloc
public static AppOverrideKeys.Buffer calloc(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
-
-