Package org.lwjgl.fmod
Class FMOD_COMPLEX
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct FMOD_COMPLEX {
float real;
float imag;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionFMOD_COMPLEX(ByteBuffer container) Creates aFMOD_COMPLEXinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_COMPLEXcalloc()Returns a newFMOD_COMPLEXinstance allocated withmemCalloc.static FMOD_COMPLEX.Buffercalloc(int capacity) Returns a newFMOD_COMPLEX.Bufferinstance allocated withmemCalloc.static FMOD_COMPLEX.Buffercalloc(int capacity, MemoryStack stack) Returns a newFMOD_COMPLEX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_COMPLEXcalloc(MemoryStack stack) Returns a newFMOD_COMPLEXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_COMPLEXcreate()Returns a newFMOD_COMPLEXinstance allocated withBufferUtils.static FMOD_COMPLEX.Buffercreate(int capacity) Returns a newFMOD_COMPLEX.Bufferinstance allocated withBufferUtils.static FMOD_COMPLEXcreate(long address) Returns a newFMOD_COMPLEXinstance for the specified memory address.static FMOD_COMPLEX.Buffercreate(long address, int capacity) Create aFMOD_COMPLEX.Bufferinstance at the specified memory.static @Nullable FMOD_COMPLEXcreateSafe(long address) static @Nullable FMOD_COMPLEX.BuffercreateSafe(long address, int capacity) floatimag()imag(float value) Sets the specified value to theimagfield.static FMOD_COMPLEXmalloc()Returns a newFMOD_COMPLEXinstance allocated withmemAlloc.static FMOD_COMPLEX.Buffermalloc(int capacity) Returns a newFMOD_COMPLEX.Bufferinstance allocated withmemAlloc.static FMOD_COMPLEX.Buffermalloc(int capacity, MemoryStack stack) Returns a newFMOD_COMPLEX.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_COMPLEXmalloc(MemoryStack stack) Returns a newFMOD_COMPLEXinstance allocated on the specifiedMemoryStack.static floatnimag(long struct) Unsafe version ofimag().static voidnimag(long struct, float value) Unsafe version ofimag.static floatnreal(long struct) Unsafe version ofreal().static voidnreal(long struct, float value) Unsafe version ofreal.floatreal()real(float value) Sets the specified value to therealfield.set(float real, float imag) Initializes this struct with the specified values.set(FMOD_COMPLEX src) 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. -
REAL
public static final int REALThe struct member offsets. -
IMAG
public static final int IMAGThe struct member offsets.
-
-
Constructor Details
-
FMOD_COMPLEX
Creates aFMOD_COMPLEXinstance 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).- Specified by:
sizeofin classStruct<FMOD_COMPLEX>
-
real
public float real()- Returns:
- the value of the
realfield.
-
imag
public float imag()- Returns:
- the value of the
imagfield.
-
real
Sets the specified value to therealfield. -
imag
Sets the specified value to theimagfield. -
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_COMPLEXinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_COMPLEXinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_COMPLEXinstance allocated withBufferUtils. -
create
Returns a newFMOD_COMPLEXinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_COMPLEX.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_COMPLEX.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_COMPLEX.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_COMPLEX.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_COMPLEXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_COMPLEXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_COMPLEX.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_COMPLEX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nreal
public static float nreal(long struct) Unsafe version ofreal(). -
nimag
public static float nimag(long struct) Unsafe version ofimag(). -
nreal
public static void nreal(long struct, float value) Unsafe version ofreal. -
nimag
public static void nimag(long struct, float value) Unsafe version ofimag.
-