Class FMOD_CODEC_STATE

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

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

Layout


 struct FMOD_CODEC_STATE {
     void * plugindata;
     struct FMOD_CODEC_WAVEFORMAT * waveformat;
     FMOD_CODEC_STATE_FUNCTIONS * functions;
     int numsubsounds;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int PLUGINDATA
      The struct member offsets.
    • WAVEFORMAT

      public static final int WAVEFORMAT
      The struct member offsets.
    • FUNCTIONS

      public static final int FUNCTIONS
      The struct member offsets.
    • NUMSUBSOUNDS

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

    • FMOD_CODEC_STATE

      public FMOD_CODEC_STATE(ByteBuffer container)
      Creates a FMOD_CODEC_STATE 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_CODEC_STATE>
    • plugindata

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

      public FMOD_CODEC_WAVEFORMAT waveformat()
      Returns:
      a FMOD_CODEC_WAVEFORMAT view of the struct pointed to by the waveformat field.
    • functions

      public FMOD_CODEC_STATE_FUNCTIONS functions()
      Returns:
      a FMOD_CODEC_STATE_FUNCTIONS view of the struct pointed to by the functions field.
    • numsubsounds

      public int numsubsounds()
      Returns:
      the value of the numsubsounds field.
    • plugindata

      public FMOD_CODEC_STATE plugindata(ByteBuffer value)
      Sets the address of the specified ByteBuffer to the plugindata field.
    • waveformat

      public FMOD_CODEC_STATE waveformat(FMOD_CODEC_WAVEFORMAT value)
      Sets the address of the specified FMOD_CODEC_WAVEFORMAT to the waveformat field.
    • functions

      public FMOD_CODEC_STATE functions(FMOD_CODEC_STATE_FUNCTIONS value)
      Sets the address of the specified FMOD_CODEC_STATE_FUNCTIONS to the functions field.
    • numsubsounds

      public FMOD_CODEC_STATE numsubsounds(int value)
      Sets the specified value to the numsubsounds field.
    • set

      public FMOD_CODEC_STATE set(ByteBuffer plugindata, FMOD_CODEC_WAVEFORMAT waveformat, FMOD_CODEC_STATE_FUNCTIONS functions, int numsubsounds)
      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_CODEC_STATE malloc()
      Returns a new FMOD_CODEC_STATE instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static ByteBuffer nplugindata(long struct, int capacity)
      Unsafe version of plugindata.
    • nwaveformat

      public static FMOD_CODEC_WAVEFORMAT nwaveformat(long struct)
      Unsafe version of waveformat().
    • nfunctions

      public static FMOD_CODEC_STATE_FUNCTIONS nfunctions(long struct)
      Unsafe version of functions().
    • nnumsubsounds

      public static int nnumsubsounds(long struct)
      Unsafe version of numsubsounds().
    • nplugindata

      public static void nplugindata(long struct, ByteBuffer value)
      Unsafe version of plugindata.
    • nwaveformat

      public static void nwaveformat(long struct, FMOD_CODEC_WAVEFORMAT value)
      Unsafe version of waveformat.
    • nfunctions

      public static void nfunctions(long struct, FMOD_CODEC_STATE_FUNCTIONS value)
      Unsafe version of functions.
    • nnumsubsounds

      public static void nnumsubsounds(long struct, int value)
      Unsafe version of numsubsounds.
    • validate

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