Package org.lwjgl.fmod
Class FSBANK_STATEDATA_WARNING
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class FSBANK_STATEDATA_WARNING
extends Struct<FSBANK_STATEDATA_WARNING>
implements NativeResource
struct FSBANK_STATEDATA_WARNING {
FSBANK_RESULT warnCode;
char warningString[256];
}-
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 size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionFSBANK_STATEDATA_WARNING(ByteBuffer container) Creates aFSBANK_STATEDATA_WARNINGinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FSBANK_STATEDATA_WARNINGcalloc()Returns a newFSBANK_STATEDATA_WARNINGinstance allocated withmemCalloc.calloc(int capacity) Returns a newFSBANK_STATEDATA_WARNING.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newFSBANK_STATEDATA_WARNING.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FSBANK_STATEDATA_WARNINGcalloc(MemoryStack stack) Returns a newFSBANK_STATEDATA_WARNINGinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FSBANK_STATEDATA_WARNINGcreate()Returns a newFSBANK_STATEDATA_WARNINGinstance allocated withBufferUtils.create(int capacity) Returns a newFSBANK_STATEDATA_WARNING.Bufferinstance allocated withBufferUtils.static FSBANK_STATEDATA_WARNINGcreate(long address) Returns a newFSBANK_STATEDATA_WARNINGinstance for the specified memory address.create(long address, int capacity) Create aFSBANK_STATEDATA_WARNING.Bufferinstance at the specified memory.static @Nullable FSBANK_STATEDATA_WARNINGcreateSafe(long address) static @Nullable FSBANK_STATEDATA_WARNING.BuffercreateSafe(long address, int capacity) static FSBANK_STATEDATA_WARNINGmalloc()Returns a newFSBANK_STATEDATA_WARNINGinstance allocated withmemAlloc.malloc(int capacity) Returns a newFSBANK_STATEDATA_WARNING.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newFSBANK_STATEDATA_WARNING.Bufferinstance allocated on the specifiedMemoryStack.static FSBANK_STATEDATA_WARNINGmalloc(MemoryStack stack) Returns a newFSBANK_STATEDATA_WARNINGinstance allocated on the specifiedMemoryStack.static intnwarnCode(long struct) Unsafe version ofwarnCode().static voidnwarnCode(long struct, int value) Unsafe version ofwarnCode.static ByteBuffernwarningString(long struct) Unsafe version ofwarningString().static voidnwarningString(long struct, ByteBuffer value) Unsafe version ofwarningString.static StringnwarningStringString(long struct) Unsafe version ofwarningStringString().set(int warnCode, ByteBuffer warningString) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intwarnCode()warnCode(int value) Sets the specified value to thewarnCodefield.warningString(ByteBuffer value) Copies the specified encoded string to thewarningStringfield.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. -
WARNCODE
public static final int WARNCODEThe struct member offsets. -
WARNINGSTRING
public static final int WARNINGSTRINGThe struct member offsets.
-
-
Constructor Details
-
FSBANK_STATEDATA_WARNING
Creates aFSBANK_STATEDATA_WARNINGinstance 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<FSBANK_STATEDATA_WARNING>
-
warnCode
public int warnCode()- Returns:
- the value of the
warnCodefield.
-
warningString
- Returns:
- a
ByteBufferview of thewarningStringfield.
-
warningStringString
- Returns:
- the null-terminated string stored in the
warningStringfield.
-
warnCode
Sets the specified value to thewarnCodefield. -
warningString
Copies the specified encoded string to thewarningStringfield. -
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 newFSBANK_STATEDATA_WARNINGinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFSBANK_STATEDATA_WARNINGinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFSBANK_STATEDATA_WARNINGinstance allocated withBufferUtils. -
create
Returns a newFSBANK_STATEDATA_WARNINGinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFSBANK_STATEDATA_WARNING.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFSBANK_STATEDATA_WARNING.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFSBANK_STATEDATA_WARNING.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFSBANK_STATEDATA_WARNING.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFSBANK_STATEDATA_WARNINGinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFSBANK_STATEDATA_WARNINGinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFSBANK_STATEDATA_WARNING.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFSBANK_STATEDATA_WARNING.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nwarnCode
public static int nwarnCode(long struct) Unsafe version ofwarnCode(). -
nwarningString
Unsafe version ofwarningString(). -
nwarningStringString
Unsafe version ofwarningStringString(). -
nwarnCode
public static void nwarnCode(long struct, int value) Unsafe version ofwarnCode. -
nwarningString
Unsafe version ofwarningString.
-