Class FMOD_PLUGINLIST

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class FMOD_PLUGINLIST extends Struct<FMOD_PLUGINLIST> implements NativeResource

 struct FMOD_PLUGINLIST {
     FMOD_PLUGINTYPE type;
     void * description;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int TYPE
      The struct member offsets.
    • DESCRIPTION

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

    • FMOD_PLUGINLIST

      public FMOD_PLUGINLIST(ByteBuffer container)
      Creates a FMOD_PLUGINLIST 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_PLUGINLIST>
    • type

      public int type()
      Returns:
      the value of the type field.
    • description

      public long description()
      Returns:
      the value of the description field.
    • type

      public FMOD_PLUGINLIST type(int value)
      Sets the specified value to the type field.
    • description

      public FMOD_PLUGINLIST description(long value)
      Sets the specified value to the description field.
    • set

      public FMOD_PLUGINLIST set(int type, long description)
      Initializes this struct with the specified values.
    • set

      public FMOD_PLUGINLIST set(FMOD_PLUGINLIST src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int ntype(long struct)
      Unsafe version of type().
    • ndescription

      public static long ndescription(long struct)
      Unsafe version of description().
    • ntype

      public static void ntype(long struct, int value)
      Unsafe version of type.
    • ndescription

      public static void ndescription(long struct, long value)
      Unsafe version of description.
    • validate

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