Class FMOD_GUID

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<FMOD_GUID>
org.lwjgl.fmod.FMOD_GUID
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class FMOD_GUID extends org.lwjgl.system.Struct<FMOD_GUID> implements org.lwjgl.system.NativeResource

Layout


 struct FMOD_GUID {
     unsigned int Data1;
     unsigned short Data2;
     unsigned short Data3;
     unsigned char Data4[8];
 }
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    An array of FMOD_GUID structs.

    Nested classes/interfaces inherited from class org.lwjgl.system.Struct

    org.lwjgl.system.Struct.StructValidation

    Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

    org.lwjgl.system.Pointer.Default
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The struct alignment in bytes.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct size in bytes.

    Fields inherited from interface org.lwjgl.system.Pointer

    BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    FMOD_GUID(ByteBuffer container)
    Creates a FMOD_GUID instance at the current position of the specified ByteBuffer container.
  • Method Summary

    Modifier and Type
    Method
    Description
    static FMOD_GUID
    Returns a new FMOD_GUID instance allocated with memCalloc.
    calloc(int capacity)
    Returns a new FMOD_GUID.Buffer instance allocated with memCalloc.
    calloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new FMOD_GUID.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
    static FMOD_GUID
    calloc(org.lwjgl.system.MemoryStack stack)
    Returns a new FMOD_GUID instance allocated on the specified MemoryStack and initializes all its bits to zero.
    static FMOD_GUID
    Returns a new FMOD_GUID instance allocated with BufferUtils.
    create(int capacity)
    Returns a new FMOD_GUID.Buffer instance allocated with BufferUtils.
    static FMOD_GUID
    create(long address)
    Returns a new FMOD_GUID instance for the specified memory address.
    create(long address, int capacity)
    Create a FMOD_GUID.Buffer instance at the specified memory.
    static @Nullable FMOD_GUID
    createSafe(long address)
    Like create, but returns null if address is NULL.
    static @Nullable FMOD_GUID.Buffer
    createSafe(long address, int capacity)
    Like create, but returns null if address is NULL.
    int
     
    Data1(int value)
    Sets the specified value to the Data1 field.
    short
     
    Data2(short value)
    Sets the specified value to the Data2 field.
    short
     
    Data3(short value)
    Sets the specified value to the Data3 field.
     
    byte
    Data4(int index)
     
    Data4(int index, byte value)
    Sets the specified value at the specified index of the Data4 field.
    Copies the specified ByteBuffer to the Data4 field.
    static FMOD_GUID
    Returns a new FMOD_GUID instance allocated with memAlloc.
    malloc(int capacity)
    Returns a new FMOD_GUID.Buffer instance allocated with memAlloc.
    malloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new FMOD_GUID.Buffer instance allocated on the specified MemoryStack.
    static FMOD_GUID
    malloc(org.lwjgl.system.MemoryStack stack)
    Returns a new FMOD_GUID instance allocated on the specified MemoryStack.
    static int
    nData1(long struct)
    Unsafe version of Data1().
    static void
    nData1(long struct, int value)
    Unsafe version of Data1.
    static short
    nData2(long struct)
    Unsafe version of Data2().
    static void
    nData2(long struct, short value)
    Unsafe version of Data2.
    static short
    nData3(long struct)
    Unsafe version of Data3().
    static void
    nData3(long struct, short value)
    Unsafe version of Data3.
    static ByteBuffer
    nData4(long struct)
    Unsafe version of Data4().
    static byte
    nData4(long struct, int index)
    Unsafe version of Data4.
    static void
    nData4(long struct, int index, byte value)
    Unsafe version of Data4.
    static void
    nData4(long struct, ByteBuffer value)
    Unsafe version of Data4.
    set(int Data1, short Data2, short Data3, ByteBuffer Data4)
    Initializes this struct with the specified values.
    Copies the specified struct data to this struct.
    int
     

    Methods inherited from class org.lwjgl.system.Struct

    clear, free, isNull, validate, validate

    Methods inherited from class org.lwjgl.system.Pointer.Default

    address, equals, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.lwjgl.system.NativeResource

    close, free
  • 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()
      Specified by:
      sizeof in class org.lwjgl.system.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(org.lwjgl.system.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(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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.