Package org.lwjgl.assimp
Class AIExportDataBlob
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct aiExportDataBlob {
size_t size;
void * data;
{@link AIString struct aiString} name;
{@link AIExportDataBlob struct aiExportDataBlob} * next;
}-
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
ConstructorsConstructorDescriptionAIExportDataBlob(ByteBuffer container) Creates aAIExportDataBlobinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIExportDataBlobcalloc()Returns a newAIExportDataBlobinstance allocated withmemCalloc.static AIExportDataBlob.Buffercalloc(int capacity) Returns a newAIExportDataBlob.Bufferinstance allocated withmemCalloc.static AIExportDataBlob.Buffercalloc(int capacity, MemoryStack stack) Returns a newAIExportDataBlob.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIExportDataBlobcalloc(MemoryStack stack) Returns a newAIExportDataBlobinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIExportDataBlobDeprecated.static AIExportDataBlob.BuffercallocStack(int capacity) Deprecated.static AIExportDataBlob.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static AIExportDataBlobcallocStack(MemoryStack stack) Deprecated.static AIExportDataBlobcreate()Returns a newAIExportDataBlobinstance allocated withBufferUtils.static AIExportDataBlob.Buffercreate(int capacity) Returns a newAIExportDataBlob.Bufferinstance allocated withBufferUtils.static AIExportDataBlobcreate(long address) Returns a newAIExportDataBlobinstance for the specified memory address.static AIExportDataBlob.Buffercreate(long address, int capacity) Create aAIExportDataBlob.Bufferinstance at the specified memory.static @Nullable AIExportDataBlobcreateSafe(long address) static @Nullable AIExportDataBlob.BuffercreateSafe(long address, int capacity) data()data(ByteBuffer value) Sets the address of the specifiedByteBufferto thedatafield.static AIExportDataBlobmalloc()Returns a newAIExportDataBlobinstance allocated withmemAlloc.static AIExportDataBlob.Buffermalloc(int capacity) Returns a newAIExportDataBlob.Bufferinstance allocated withmemAlloc.static AIExportDataBlob.Buffermalloc(int capacity, MemoryStack stack) Returns a newAIExportDataBlob.Bufferinstance allocated on the specifiedMemoryStack.static AIExportDataBlobmalloc(MemoryStack stack) Returns a newAIExportDataBlobinstance allocated on the specifiedMemoryStack.static AIExportDataBlobDeprecated.static AIExportDataBlob.BuffermallocStack(int capacity) Deprecated.static AIExportDataBlob.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static AIExportDataBlobmallocStack(MemoryStack stack) Deprecated.name()Passes thenamefield to the specifiedConsumer.Copies the specifiedAIStringto thenamefield.static ByteBufferndata(long struct) Unsafe version ofdata.static voidndata(long struct, ByteBuffer value) Unsafe version ofdata.@Nullable AIExportDataBlobnext()next(@Nullable AIExportDataBlob value) Sets the address of the specifiedAIExportDataBlobto thenextfield.static AIStringnname(long struct) Unsafe version ofname().static voidUnsafe version ofname.static @Nullable AIExportDataBlobnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, @Nullable AIExportDataBlob value) Unsafe version ofnext.static longnsize(long struct) Unsafe version ofsize().static voidnsize(long struct, long value) Sets the specified value to thesizefield of the specifiedstruct.set(ByteBuffer data, AIString name, @Nullable AIExportDataBlob next) Initializes this struct with the specified values.set(AIExportDataBlob src) Copies the specified struct data to this struct.longsize()intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
SIZE
public static final int SIZEThe struct member offsets. -
DATA
public static final int DATAThe struct member offsets. -
NAME
public static final int NAMEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets.
-
-
Constructor Details
-
AIExportDataBlob
Creates aAIExportDataBlobinstance 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<AIExportDataBlob>
-
size
public long size()- Returns:
- the value of the
sizefield.
-
data
- Returns:
- a
ByteBufferview of the data pointed to by thedatafield.
-
name
- Returns:
- a
AIStringview of thenamefield.
-
next
- Returns:
- a
AIExportDataBlobview of the struct pointed to by thenextfield.
-
data
Sets the address of the specifiedByteBufferto thedatafield. -
name
Copies the specifiedAIStringto thenamefield. -
name
Passes thenamefield to the specifiedConsumer. -
next
Sets the address of the specifiedAIExportDataBlobto thenextfield. -
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 newAIExportDataBlobinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAIExportDataBlobinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAIExportDataBlobinstance allocated withBufferUtils. -
create
Returns a newAIExportDataBlobinstance for the specified memory address. -
createSafe
-
malloc
Returns a newAIExportDataBlob.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAIExportDataBlob.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAIExportDataBlob.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAIExportDataBlob.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newAIExportDataBlobinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAIExportDataBlobinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAIExportDataBlob.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAIExportDataBlob.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsize
public static long nsize(long struct) Unsafe version ofsize(). -
ndata
Unsafe version ofdata. -
nname
Unsafe version ofname(). -
nnext
Unsafe version ofnext(). -
nsize
public static void nsize(long struct, long value) Sets the specified value to thesizefield of the specifiedstruct. -
ndata
Unsafe version ofdata. -
nname
Unsafe version ofname. -
nnext
Unsafe version ofnext. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-