Class FSBANK_PROGRESSITEM

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class FSBANK_PROGRESSITEM extends Struct<FSBANK_PROGRESSITEM> implements NativeResource

 struct FSBANK_PROGRESSITEM {
     int subSoundIndex;
     int threadIndex;
     FSBANK_STATE state;
     void const * stateData;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int SUBSOUNDINDEX
      The struct member offsets.
    • THREADINDEX

      public static final int THREADINDEX
      The struct member offsets.
    • STATE

      public static final int STATE
      The struct member offsets.
    • STATEDATA

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

    • FSBANK_PROGRESSITEM

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

      public int subSoundIndex()
      Returns:
      the value of the subSoundIndex field.
    • threadIndex

      public int threadIndex()
      Returns:
      the value of the threadIndex field.
    • state

      public int state()
      Returns:
      the value of the state field.
    • stateData

      public long stateData()
      Returns:
      the value of the stateData field.
    • subSoundIndex

      public FSBANK_PROGRESSITEM subSoundIndex(int value)
      Sets the specified value to the subSoundIndex field.
    • threadIndex

      public FSBANK_PROGRESSITEM threadIndex(int value)
      Sets the specified value to the threadIndex field.
    • state

      public FSBANK_PROGRESSITEM state(int value)
      Sets the specified value to the state field.
    • stateData

      public FSBANK_PROGRESSITEM stateData(long value)
      Sets the specified value to the stateData field.
    • set

      public FSBANK_PROGRESSITEM set(int subSoundIndex, int threadIndex, int state, long stateData)
      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 FSBANK_PROGRESSITEM malloc()
      Returns a new FSBANK_PROGRESSITEM instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nsubSoundIndex(long struct)
      Unsafe version of subSoundIndex().
    • nthreadIndex

      public static int nthreadIndex(long struct)
      Unsafe version of threadIndex().
    • nstate

      public static int nstate(long struct)
      Unsafe version of state().
    • nstateData

      public static long nstateData(long struct)
      Unsafe version of stateData().
    • nsubSoundIndex

      public static void nsubSoundIndex(long struct, int value)
      Unsafe version of subSoundIndex.
    • nthreadIndex

      public static void nthreadIndex(long struct, int value)
      Unsafe version of threadIndex.
    • nstate

      public static void nstate(long struct, int value)
      Unsafe version of state.
    • nstateData

      public static void nstateData(long struct, long value)
      Unsafe version of stateData.