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;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • PCHKEY

      public static final int PCHKEY
      The struct member offsets.
    • PCHVALUE

      public static final int PCHVALUE
      The struct member offsets.
  • Constructor Details

    • AppOverrideKeys

      public AppOverrideKeys(ByteBuffer container)
      Creates a AppOverrideKeys instance at the current position of the specified ByteBuffer 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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<AppOverrideKeys>
    • pchKey

      public ByteBuffer pchKey()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the pchKey field.
    • pchKeyString

      public String pchKeyString()
      Returns:
      the null-terminated string pointed to by the pchKey field.
    • pchValue

      public ByteBuffer pchValue(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a ByteBuffer view of the data pointed to by the pchValue field.
    • pchKey

      public AppOverrideKeys pchKey(ByteBuffer value)
      Sets the address of the specified encoded string to the pchKey field.
    • pchValue

      public AppOverrideKeys pchValue(ByteBuffer value)
      Sets the address of the specified ByteBuffer to the pchValue field.
    • set

      public AppOverrideKeys set(ByteBuffer pchKey, 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 new AppOverrideKeys instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static AppOverrideKeys calloc()
      Returns a new AppOverrideKeys instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static AppOverrideKeys create()
      Returns a new AppOverrideKeys instance allocated with BufferUtils.
    • create

      public static AppOverrideKeys create(long address)
      Returns a new AppOverrideKeys instance for the specified memory address.
    • createSafe

      public static @Nullable AppOverrideKeys createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static AppOverrideKeys.Buffer malloc(int capacity)
      Returns a new AppOverrideKeys.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static AppOverrideKeys.Buffer calloc(int capacity)
      Returns a new AppOverrideKeys.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static AppOverrideKeys.Buffer create(int capacity)
      Returns a new AppOverrideKeys.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static AppOverrideKeys.Buffer create(long address, int capacity)
      Create a AppOverrideKeys.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable AppOverrideKeys.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • mallocStack

      @Deprecated public static AppOverrideKeys mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static AppOverrideKeys callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static AppOverrideKeys mallocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static AppOverrideKeys callocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static AppOverrideKeys.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static AppOverrideKeys.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(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. Use malloc(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. Use calloc(int, MemoryStack) instead.
    • malloc

      public static AppOverrideKeys malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new AppOverrideKeys instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static AppOverrideKeys calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new AppOverrideKeys instance allocated on the specified MemoryStack and 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 new AppOverrideKeys.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static AppOverrideKeys.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new AppOverrideKeys.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • npchKey

      public static ByteBuffer npchKey(long struct)
      Unsafe version of pchKey().
    • npchKeyString

      public static String npchKeyString(long struct)
      Unsafe version of pchKeyString().
    • npchValue

      public static ByteBuffer npchValue(long struct, int capacity)
      Unsafe version of pchValue.
    • npchKey

      public static void npchKey(long struct, ByteBuffer value)
      Unsafe version of pchKey.
    • npchValue

      public static void npchValue(long struct, ByteBuffer value)
      Unsafe version of pchValue.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate