Class FMOD_ERRORCALLBACK_INFO

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class FMOD_ERRORCALLBACK_INFO extends Struct<FMOD_ERRORCALLBACK_INFO> implements NativeResource

 struct FMOD_ERRORCALLBACK_INFO {
     FMOD_RESULT result;
     FMOD_ERRORCALLBACK_INSTANCETYPE instancetype;
     void * instance;
     char const * functionname;
     char const * functionparams;
 }
  • Field Details

    • SIZEOF

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

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

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

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

      public static final int INSTANCE
      The struct member offsets.
    • FUNCTIONNAME

      public static final int FUNCTIONNAME
      The struct member offsets.
    • FUNCTIONPARAMS

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

    • FMOD_ERRORCALLBACK_INFO

      public FMOD_ERRORCALLBACK_INFO(ByteBuffer container)
      Creates a FMOD_ERRORCALLBACK_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_ERRORCALLBACK_INFO>
    • result

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

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

      public long instance()
      Returns:
      the value of the instance field.
    • functionname

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

      public String functionnameString()
      Returns:
      the null-terminated string pointed to by the functionname field.
    • functionparams

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

      public String functionparamsString()
      Returns:
      the null-terminated string pointed to by the functionparams field.
    • result

      public FMOD_ERRORCALLBACK_INFO result(int value)
      Sets the specified value to the result field.
    • instancetype

      public FMOD_ERRORCALLBACK_INFO instancetype(int value)
      Sets the specified value to the instancetype field.
    • instance

      public FMOD_ERRORCALLBACK_INFO instance(long value)
      Sets the specified value to the instance field.
    • functionname

      public FMOD_ERRORCALLBACK_INFO functionname(ByteBuffer value)
      Sets the address of the specified encoded string to the functionname field.
    • functionparams

      public FMOD_ERRORCALLBACK_INFO functionparams(ByteBuffer value)
      Sets the address of the specified encoded string to the functionparams field.
    • set

      public FMOD_ERRORCALLBACK_INFO set(int result, int instancetype, long instance, ByteBuffer functionname, ByteBuffer functionparams)
      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_ERRORCALLBACK_INFO malloc()
      Returns a new FMOD_ERRORCALLBACK_INFO instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nresult(long struct)
      Unsafe version of result().
    • ninstancetype

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

      public static long ninstance(long struct)
      Unsafe version of instance().
    • nfunctionname

      public static ByteBuffer nfunctionname(long struct)
      Unsafe version of functionname().
    • nfunctionnameString

      public static String nfunctionnameString(long struct)
      Unsafe version of functionnameString().
    • nfunctionparams

      public static ByteBuffer nfunctionparams(long struct)
      Unsafe version of functionparams().
    • nfunctionparamsString

      public static String nfunctionparamsString(long struct)
      Unsafe version of functionparamsString().
    • nresult

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

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

      public static void ninstance(long struct, long value)
      Unsafe version of instance.
    • nfunctionname

      public static void nfunctionname(long struct, ByteBuffer value)
      Unsafe version of functionname.
    • nfunctionparams

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

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