Class FMOD_GUID

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class FMOD_GUID extends Struct<FMOD_GUID> implements NativeResource

 struct FMOD_GUID {
     unsigned int Data1;
     unsigned short Data2;
     unsigned short Data3;
     unsigned char Data4[8];
 }
  • Field Details

    • SIZEOF

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

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

      public static final int DATA1
      The struct member offsets.
    • DATA2

      public static final int DATA2
      The struct member offsets.
    • DATA3

      public static final int DATA3
      The struct member offsets.
    • DATA4

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

    • FMOD_GUID

      public FMOD_GUID(ByteBuffer container)
      Creates a FMOD_GUID 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_GUID>
    • Data1

      public int Data1()
      Returns:
      the value of the Data1 field.
    • Data2

      public short Data2()
      Returns:
      the value of the Data2 field.
    • Data3

      public short Data3()
      Returns:
      the value of the Data3 field.
    • Data4

      public ByteBuffer Data4()
      Returns:
      a ByteBuffer view of the Data4 field.
    • Data4

      public byte Data4(int index)
      Returns:
      the value at the specified index of the Data4 field.
    • Data1

      public FMOD_GUID Data1(int value)
      Sets the specified value to the Data1 field.
    • Data2

      public FMOD_GUID Data2(short value)
      Sets the specified value to the Data2 field.
    • Data3

      public FMOD_GUID Data3(short value)
      Sets the specified value to the Data3 field.
    • Data4

      public FMOD_GUID Data4(ByteBuffer value)
      Copies the specified ByteBuffer to the Data4 field.
    • Data4

      public FMOD_GUID Data4(int index, byte value)
      Sets the specified value at the specified index of the Data4 field.
    • set

      public FMOD_GUID set(int Data1, short Data2, short Data3, ByteBuffer Data4)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nData1(long struct)
      Unsafe version of Data1().
    • nData2

      public static short nData2(long struct)
      Unsafe version of Data2().
    • nData3

      public static short nData3(long struct)
      Unsafe version of Data3().
    • nData4

      public static ByteBuffer nData4(long struct)
      Unsafe version of Data4().
    • nData4

      public static byte nData4(long struct, int index)
      Unsafe version of Data4.
    • nData1

      public static void nData1(long struct, int value)
      Unsafe version of Data1.
    • nData2

      public static void nData2(long struct, short value)
      Unsafe version of Data2.
    • nData3

      public static void nData3(long struct, short value)
      Unsafe version of Data3.
    • nData4

      public static void nData4(long struct, ByteBuffer value)
      Unsafe version of Data4.
    • nData4

      public static void nData4(long struct, int index, byte value)
      Unsafe version of Data4.