Class FMOD_STUDIO_PARAMETER_ID

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<FMOD_STUDIO_PARAMETER_ID>
org.lwjgl.fmod.FMOD_STUDIO_PARAMETER_ID
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class FMOD_STUDIO_PARAMETER_ID extends org.lwjgl.system.Struct<FMOD_STUDIO_PARAMETER_ID> implements org.lwjgl.system.NativeResource

Layout


 struct FMOD_STUDIO_PARAMETER_ID {
     unsigned int data1;
     unsigned int data2;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int DATA1
      The struct member offsets.
    • DATA2

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

    • FMOD_STUDIO_PARAMETER_ID

      public FMOD_STUDIO_PARAMETER_ID(ByteBuffer container)
      Creates a FMOD_STUDIO_PARAMETER_ID 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<FMOD_STUDIO_PARAMETER_ID>
    • data1

      public int data1()
      Returns:
      the value of the data1 field.
    • data2

      public int data2()
      Returns:
      the value of the data2 field.
    • data1

      public FMOD_STUDIO_PARAMETER_ID data1(int value)
      Sets the specified value to the data1 field.
    • data2

      public FMOD_STUDIO_PARAMETER_ID data2(int value)
      Sets the specified value to the data2 field.
    • set

      public FMOD_STUDIO_PARAMETER_ID set(int data1, int data2)
      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

      public static FMOD_STUDIO_PARAMETER_ID malloc()
      Returns a new FMOD_STUDIO_PARAMETER_ID instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

      public static FMOD_STUDIO_PARAMETER_ID calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new FMOD_STUDIO_PARAMETER_ID instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

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

      public static FMOD_STUDIO_PARAMETER_ID.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new FMOD_STUDIO_PARAMETER_ID.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
    • ndata1

      public static int ndata1(long struct)
      Unsafe version of data1().
    • ndata2

      public static int ndata2(long struct)
      Unsafe version of data2().
    • ndata1

      public static void ndata1(long struct, int value)
      Unsafe version of data1.
    • ndata2

      public static void ndata2(long struct, int value)
      Unsafe version of data2.