Class FMOD_STUDIO_COMMAND_INFO

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class FMOD_STUDIO_COMMAND_INFO extends Struct<FMOD_STUDIO_COMMAND_INFO> implements NativeResource

 struct FMOD_STUDIO_COMMAND_INFO {
     char const * commandname;
     int parentcommandindex;
     int framenumber;
     float frametime;
     FMOD_STUDIO_INSTANCETYPE instancetype;
     FMOD_STUDIO_INSTANCETYPE outputtype;
     unsigned int instancehandle;
     unsigned int outputhandle;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int COMMANDNAME
      The struct member offsets.
    • PARENTCOMMANDINDEX

      public static final int PARENTCOMMANDINDEX
      The struct member offsets.
    • FRAMENUMBER

      public static final int FRAMENUMBER
      The struct member offsets.
    • FRAMETIME

      public static final int FRAMETIME
      The struct member offsets.
    • INSTANCETYPE

      public static final int INSTANCETYPE
      The struct member offsets.
    • OUTPUTTYPE

      public static final int OUTPUTTYPE
      The struct member offsets.
    • INSTANCEHANDLE

      public static final int INSTANCEHANDLE
      The struct member offsets.
    • OUTPUTHANDLE

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

    • FMOD_STUDIO_COMMAND_INFO

      public FMOD_STUDIO_COMMAND_INFO(ByteBuffer container)
      Creates a FMOD_STUDIO_COMMAND_INFO 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()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<FMOD_STUDIO_COMMAND_INFO>
    • commandname

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

      public String commandnameString()
      Returns:
      the null-terminated string pointed to by the commandname field.
    • parentcommandindex

      public int parentcommandindex()
      Returns:
      the value of the parentcommandindex field.
    • framenumber

      public int framenumber()
      Returns:
      the value of the framenumber field.
    • frametime

      public float frametime()
      Returns:
      the value of the frametime field.
    • instancetype

      public int instancetype()
      Returns:
      the value of the instancetype field.
    • outputtype

      public int outputtype()
      Returns:
      the value of the outputtype field.
    • instancehandle

      public int instancehandle()
      Returns:
      the value of the instancehandle field.
    • outputhandle

      public int outputhandle()
      Returns:
      the value of the outputhandle field.
    • commandname

      public FMOD_STUDIO_COMMAND_INFO commandname(ByteBuffer value)
      Sets the address of the specified encoded string to the commandname field.
    • parentcommandindex

      public FMOD_STUDIO_COMMAND_INFO parentcommandindex(int value)
      Sets the specified value to the parentcommandindex field.
    • framenumber

      public FMOD_STUDIO_COMMAND_INFO framenumber(int value)
      Sets the specified value to the framenumber field.
    • frametime

      public FMOD_STUDIO_COMMAND_INFO frametime(float value)
      Sets the specified value to the frametime field.
    • instancetype

      public FMOD_STUDIO_COMMAND_INFO instancetype(int value)
      Sets the specified value to the instancetype field.
    • outputtype

      public FMOD_STUDIO_COMMAND_INFO outputtype(int value)
      Sets the specified value to the outputtype field.
    • instancehandle

      public FMOD_STUDIO_COMMAND_INFO instancehandle(int value)
      Sets the specified value to the instancehandle field.
    • outputhandle

      public FMOD_STUDIO_COMMAND_INFO outputhandle(int value)
      Sets the specified value to the outputhandle field.
    • set

      public FMOD_STUDIO_COMMAND_INFO set(ByteBuffer commandname, int parentcommandindex, int framenumber, float frametime, int instancetype, int outputtype, int instancehandle, int outputhandle)
      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_COMMAND_INFO malloc()
      Returns a new FMOD_STUDIO_COMMAND_INFO instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

      public static FMOD_STUDIO_COMMAND_INFO.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new FMOD_STUDIO_COMMAND_INFO.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
    • ncommandname

      public static ByteBuffer ncommandname(long struct)
      Unsafe version of commandname().
    • ncommandnameString

      public static String ncommandnameString(long struct)
      Unsafe version of commandnameString().
    • nparentcommandindex

      public static int nparentcommandindex(long struct)
      Unsafe version of parentcommandindex().
    • nframenumber

      public static int nframenumber(long struct)
      Unsafe version of framenumber().
    • nframetime

      public static float nframetime(long struct)
      Unsafe version of frametime().
    • ninstancetype

      public static int ninstancetype(long struct)
      Unsafe version of instancetype().
    • noutputtype

      public static int noutputtype(long struct)
      Unsafe version of outputtype().
    • ninstancehandle

      public static int ninstancehandle(long struct)
      Unsafe version of instancehandle().
    • noutputhandle

      public static int noutputhandle(long struct)
      Unsafe version of outputhandle().
    • ncommandname

      public static void ncommandname(long struct, ByteBuffer value)
      Unsafe version of commandname.
    • nparentcommandindex

      public static void nparentcommandindex(long struct, int value)
      Unsafe version of parentcommandindex.
    • nframenumber

      public static void nframenumber(long struct, int value)
      Unsafe version of framenumber.
    • nframetime

      public static void nframetime(long struct, float value)
      Unsafe version of frametime.
    • ninstancetype

      public static void ninstancetype(long struct, int value)
      Unsafe version of instancetype.
    • noutputtype

      public static void noutputtype(long struct, int value)
      Unsafe version of outputtype.
    • ninstancehandle

      public static void ninstancehandle(long struct, int value)
      Unsafe version of instancehandle.
    • noutputhandle

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

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