Package org.lwjgl.fmod
Class FMOD_GUID
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct FMOD_GUID {
unsigned int Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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
ConstructorsConstructorDescriptionFMOD_GUID
(ByteBuffer container) Creates aFMOD_GUID
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_GUID
calloc()
Returns a newFMOD_GUID
instance allocated withmemCalloc
.static FMOD_GUID.Buffer
calloc
(int capacity) Returns a newFMOD_GUID.Buffer
instance allocated withmemCalloc
.static FMOD_GUID.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFMOD_GUID.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_GUID
calloc
(MemoryStack stack) Returns a newFMOD_GUID
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_GUID
create()
Returns a newFMOD_GUID
instance allocated withBufferUtils
.static FMOD_GUID.Buffer
create
(int capacity) Returns a newFMOD_GUID.Buffer
instance allocated withBufferUtils
.static FMOD_GUID
create
(long address) Returns a newFMOD_GUID
instance for the specified memory address.static FMOD_GUID.Buffer
create
(long address, int capacity) Create aFMOD_GUID.Buffer
instance at the specified memory.static @Nullable FMOD_GUID
createSafe
(long address) static @Nullable FMOD_GUID.Buffer
createSafe
(long address, int capacity) int
Data1()
Data1
(int value) Sets the specified value to theData1
field.short
Data2()
Data2
(short value) Sets the specified value to theData2
field.short
Data3()
Data3
(short value) Sets the specified value to theData3
field.Data4()
byte
Data4
(int index) Data4
(int index, byte value) Sets the specified value at the specified index of theData4
field.Data4
(ByteBuffer value) Copies the specifiedByteBuffer
to theData4
field.static FMOD_GUID
malloc()
Returns a newFMOD_GUID
instance allocated withmemAlloc
.static FMOD_GUID.Buffer
malloc
(int capacity) Returns a newFMOD_GUID.Buffer
instance allocated withmemAlloc
.static FMOD_GUID.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFMOD_GUID.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_GUID
malloc
(MemoryStack stack) Returns a newFMOD_GUID
instance allocated on the specifiedMemoryStack
.static int
nData1
(long struct) Unsafe version ofData1()
.static void
nData1
(long struct, int value) Unsafe version ofData1
.static short
nData2
(long struct) Unsafe version ofData2()
.static void
nData2
(long struct, short value) Unsafe version ofData2
.static short
nData3
(long struct) Unsafe version ofData3()
.static void
nData3
(long struct, short value) Unsafe version ofData3
.static ByteBuffer
nData4
(long struct) Unsafe version ofData4()
.static byte
nData4
(long struct, int index) Unsafe version ofData4
.static void
nData4
(long struct, int index, byte value) Unsafe version ofData4
.static void
nData4
(long struct, ByteBuffer value) Unsafe version ofData4
.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
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
DATA1
public static final int DATA1The struct member offsets. -
DATA2
public static final int DATA2The struct member offsets. -
DATA3
public static final int DATA3The struct member offsets. -
DATA4
public static final int DATA4The struct member offsets.
-
-
Constructor Details
-
FMOD_GUID
Creates aFMOD_GUID
instance at the current position of the specifiedByteBuffer
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
Returnssizeof(struct)
. -
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
- Returns:
- a
ByteBuffer
view of theData4
field.
-
Data4
public byte Data4(int index) - Returns:
- the value at the specified index of the
Data4
field.
-
Data1
Sets the specified value to theData1
field. -
Data2
Sets the specified value to theData2
field. -
Data3
Sets the specified value to theData3
field. -
Data4
Copies the specifiedByteBuffer
to theData4
field. -
Data4
Sets the specified value at the specified index of theData4
field. -
set
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
Returns a newFMOD_GUID
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_GUID
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_GUID
instance allocated withBufferUtils
. -
create
Returns a newFMOD_GUID
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_GUID.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_GUID.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_GUID.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_GUID.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_GUID
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_GUID
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFMOD_GUID.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_GUID.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nData1
public static int nData1(long struct) Unsafe version ofData1()
. -
nData2
public static short nData2(long struct) Unsafe version ofData2()
. -
nData3
public static short nData3(long struct) Unsafe version ofData3()
. -
nData4
Unsafe version ofData4()
. -
nData4
public static byte nData4(long struct, int index) Unsafe version ofData4
. -
nData1
public static void nData1(long struct, int value) Unsafe version ofData1
. -
nData2
public static void nData2(long struct, short value) Unsafe version ofData2
. -
nData3
public static void nData3(long struct, short value) Unsafe version ofData3
. -
nData4
Unsafe version ofData4
. -
nData4
public static void nData4(long struct, int index, byte value) Unsafe version ofData4
.
-