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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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_GUIDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_GUIDcalloc()Returns a newFMOD_GUIDinstance allocated withmemCalloc.static FMOD_GUID.Buffercalloc(int capacity) Returns a newFMOD_GUID.Bufferinstance allocated withmemCalloc.static FMOD_GUID.Buffercalloc(int capacity, MemoryStack stack) Returns a newFMOD_GUID.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_GUIDcalloc(MemoryStack stack) Returns a newFMOD_GUIDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_GUIDcreate()Returns a newFMOD_GUIDinstance allocated withBufferUtils.static FMOD_GUID.Buffercreate(int capacity) Returns a newFMOD_GUID.Bufferinstance allocated withBufferUtils.static FMOD_GUIDcreate(long address) Returns a newFMOD_GUIDinstance for the specified memory address.static FMOD_GUID.Buffercreate(long address, int capacity) Create aFMOD_GUID.Bufferinstance at the specified memory.static @Nullable FMOD_GUIDcreateSafe(long address) static @Nullable FMOD_GUID.BuffercreateSafe(long address, int capacity) intData1()Data1(int value) Sets the specified value to theData1field.shortData2()Data2(short value) Sets the specified value to theData2field.shortData3()Data3(short value) Sets the specified value to theData3field.Data4()byteData4(int index) Data4(int index, byte value) Sets the specified value at the specified index of theData4field.Data4(ByteBuffer value) Copies the specifiedByteBufferto theData4field.static FMOD_GUIDmalloc()Returns a newFMOD_GUIDinstance allocated withmemAlloc.static FMOD_GUID.Buffermalloc(int capacity) Returns a newFMOD_GUID.Bufferinstance allocated withmemAlloc.static FMOD_GUID.Buffermalloc(int capacity, MemoryStack stack) Returns a newFMOD_GUID.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_GUIDmalloc(MemoryStack stack) Returns a newFMOD_GUIDinstance allocated on the specifiedMemoryStack.static intnData1(long struct) Unsafe version ofData1().static voidnData1(long struct, int value) Unsafe version ofData1.static shortnData2(long struct) Unsafe version ofData2().static voidnData2(long struct, short value) Unsafe version ofData2.static shortnData3(long struct) Unsafe version ofData3().static voidnData3(long struct, short value) Unsafe version ofData3.static ByteBuffernData4(long struct) Unsafe version ofData4().static bytenData4(long struct, int index) Unsafe version ofData4.static voidnData4(long struct, int index, byte value) Unsafe version ofData4.static voidnData4(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.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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_GUIDinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct). -
Data1
public int Data1()- Returns:
- the value of the
Data1field.
-
Data2
public short Data2()- Returns:
- the value of the
Data2field.
-
Data3
public short Data3()- Returns:
- the value of the
Data3field.
-
Data4
- Returns:
- a
ByteBufferview of theData4field.
-
Data4
public byte Data4(int index) - Returns:
- the value at the specified index of the
Data4field.
-
Data1
Sets the specified value to theData1field. -
Data2
Sets the specified value to theData2field. -
Data3
Sets the specified value to theData3field. -
Data4
Copies the specifiedByteBufferto theData4field. -
Data4
Sets the specified value at the specified index of theData4field. -
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_GUIDinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_GUIDinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_GUIDinstance allocated withBufferUtils. -
create
Returns a newFMOD_GUIDinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_GUID.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_GUID.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_GUID.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_GUID.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_GUIDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_GUIDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_GUID.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_GUID.Bufferinstance allocated on the specifiedMemoryStackand 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.
-