Package org.lwjgl.assimp
Class AIFile
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct aiFile {
{@link AIFileReadProcI aiFileReadProc} ReadProc;
{@link AIFileWriteProcI aiFileWriteProc} WriteProc;
{@link AIFileTellProcI aiFileTellProc} TellProc;
{@link AIFileTellProcI aiFileTellProc} FileSizeProc;
{@link AIFileSeekI aiFileSeek} SeekProc;
{@link AIFileFlushProcI aiFileFlushProc} FlushProc;
aiUserData UserData;
}
-
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.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionAIFile
(ByteBuffer container) Creates aAIFile
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIFile
calloc()
Returns a newAIFile
instance allocated withmemCalloc
.static AIFile.Buffer
calloc
(int capacity) Returns a newAIFile.Buffer
instance allocated withmemCalloc
.static AIFile.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newAIFile.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIFile
calloc
(MemoryStack stack) Returns a newAIFile
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIFile
Deprecated.static AIFile.Buffer
callocStack
(int capacity) Deprecated.static AIFile.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static AIFile
callocStack
(MemoryStack stack) Deprecated.static AIFile
create()
Returns a newAIFile
instance allocated withBufferUtils
.static AIFile.Buffer
create
(int capacity) Returns a newAIFile.Buffer
instance allocated withBufferUtils
.static AIFile
create
(long address) Returns a newAIFile
instance for the specified memory address.static AIFile.Buffer
create
(long address, int capacity) Create aAIFile.Buffer
instance at the specified memory.static @Nullable AIFile
createSafe
(long address) static @Nullable AIFile.Buffer
createSafe
(long address, int capacity) FileSizeProc
(AIFileTellProcI value) Sets the specified value to theFileSizeProc
field.FlushProc
(AIFileFlushProcI value) Sets the specified value to theFlushProc
field.static AIFile
malloc()
Returns a newAIFile
instance allocated withmemAlloc
.static AIFile.Buffer
malloc
(int capacity) Returns a newAIFile.Buffer
instance allocated withmemAlloc
.static AIFile.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newAIFile.Buffer
instance allocated on the specifiedMemoryStack
.static AIFile
malloc
(MemoryStack stack) Returns a newAIFile
instance allocated on the specifiedMemoryStack
.static AIFile
Deprecated.static AIFile.Buffer
mallocStack
(int capacity) Deprecated.static AIFile.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static AIFile
mallocStack
(MemoryStack stack) Deprecated.static AIFileTellProc
nFileSizeProc
(long struct) Unsafe version ofFileSizeProc()
.static void
nFileSizeProc
(long struct, AIFileTellProcI value) Unsafe version ofFileSizeProc
.static AIFileFlushProc
nFlushProc
(long struct) Unsafe version ofFlushProc()
.static void
nFlushProc
(long struct, AIFileFlushProcI value) Unsafe version ofFlushProc
.static AIFileReadProc
nReadProc
(long struct) Unsafe version ofReadProc()
.static void
nReadProc
(long struct, AIFileReadProcI value) Unsafe version ofReadProc
.static AIFileSeek
nSeekProc
(long struct) Unsafe version ofSeekProc()
.static void
nSeekProc
(long struct, AIFileSeekI value) Unsafe version ofSeekProc
.static AIFileTellProc
nTellProc
(long struct) Unsafe version ofTellProc()
.static void
nTellProc
(long struct, AIFileTellProcI value) Unsafe version ofTellProc
.static long
nUserData
(long struct) Unsafe version ofUserData()
.static void
nUserData
(long struct, long value) Unsafe version ofUserData
.static AIFileWriteProc
nWriteProc
(long struct) Unsafe version ofWriteProc()
.static void
nWriteProc
(long struct, AIFileWriteProcI value) Unsafe version ofWriteProc
.ReadProc()
ReadProc
(AIFileReadProcI value) Sets the specified value to theReadProc
field.SeekProc()
SeekProc
(AIFileSeekI value) Sets the specified value to theSeekProc
field.Copies the specified struct data to this struct.set
(AIFileReadProcI ReadProc, AIFileWriteProcI WriteProc, AIFileTellProcI TellProc, AIFileTellProcI FileSizeProc, AIFileSeekI SeekProc, AIFileFlushProcI FlushProc, long UserData) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.TellProc()
TellProc
(AIFileTellProcI value) Sets the specified value to theTellProc
field.long
UserData()
UserData
(long value) Sets the specified value to theUserData
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.WriteProc
(AIFileWriteProcI value) Sets the specified value to theWriteProc
field.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. -
READPROC
public static final int READPROCThe struct member offsets. -
WRITEPROC
public static final int WRITEPROCThe struct member offsets. -
TELLPROC
public static final int TELLPROCThe struct member offsets. -
FILESIZEPROC
public static final int FILESIZEPROCThe struct member offsets. -
SEEKPROC
public static final int SEEKPROCThe struct member offsets. -
FLUSHPROC
public static final int FLUSHPROCThe struct member offsets. -
USERDATA
public static final int USERDATAThe struct member offsets.
-
-
Constructor Details
-
AIFile
Creates aAIFile
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)
. -
ReadProc
- Returns:
- the value of the
ReadProc
field.
-
WriteProc
- Returns:
- the value of the
WriteProc
field.
-
TellProc
- Returns:
- the value of the
TellProc
field.
-
FileSizeProc
- Returns:
- the value of the
FileSizeProc
field.
-
SeekProc
- Returns:
- the value of the
SeekProc
field.
-
FlushProc
- Returns:
- the value of the
FlushProc
field.
-
UserData
public long UserData()- Returns:
- the value of the
UserData
field.
-
ReadProc
Sets the specified value to theReadProc
field. -
WriteProc
Sets the specified value to theWriteProc
field. -
TellProc
Sets the specified value to theTellProc
field. -
FileSizeProc
Sets the specified value to theFileSizeProc
field. -
SeekProc
Sets the specified value to theSeekProc
field. -
FlushProc
Sets the specified value to theFlushProc
field. -
UserData
Sets the specified value to theUserData
field. -
set
public AIFile set(AIFileReadProcI ReadProc, AIFileWriteProcI WriteProc, AIFileTellProcI TellProc, AIFileTellProcI FileSizeProc, AIFileSeekI SeekProc, AIFileFlushProcI FlushProc, long UserData) 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 newAIFile
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newAIFile
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newAIFile
instance allocated withBufferUtils
. -
create
Returns a newAIFile
instance for the specified memory address. -
createSafe
-
malloc
Returns a newAIFile.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newAIFile.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newAIFile.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aAIFile.Buffer
instance 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 newAIFile
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newAIFile
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newAIFile.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newAIFile.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nReadProc
Unsafe version ofReadProc()
. -
nWriteProc
Unsafe version ofWriteProc()
. -
nTellProc
Unsafe version ofTellProc()
. -
nFileSizeProc
Unsafe version ofFileSizeProc()
. -
nSeekProc
Unsafe version ofSeekProc()
. -
nFlushProc
Unsafe version ofFlushProc()
. -
nUserData
public static long nUserData(long struct) Unsafe version ofUserData()
. -
nReadProc
Unsafe version ofReadProc
. -
nWriteProc
Unsafe version ofWriteProc
. -
nTellProc
Unsafe version ofTellProc
. -
nFileSizeProc
Unsafe version ofFileSizeProc
. -
nSeekProc
Unsafe version ofSeekProc
. -
nFlushProc
Unsafe version ofFlushProc
. -
nUserData
public static void nUserData(long struct, long value) Unsafe version ofUserData
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-