Package org.lwjgl.assimp
Class AIFile
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct aiFile {
aiFileReadProc ReadProc;
aiFileWriteProc WriteProc;
aiFileTellProc TellProc;
aiFileTellProc FileSizeProc;
aiFileSeek SeekProc;
aiFileFlushProc FlushProc;
aiUserData UserData;
}-
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.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionAIFile(ByteBuffer container) Creates aAIFileinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIFilecalloc()Returns a newAIFileinstance allocated withmemCalloc.static AIFile.Buffercalloc(int capacity) Returns a newAIFile.Bufferinstance allocated withmemCalloc.static AIFile.Buffercalloc(int capacity, MemoryStack stack) Returns a newAIFile.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIFilecalloc(MemoryStack stack) Returns a newAIFileinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIFilecreate()Returns a newAIFileinstance allocated withBufferUtils.static AIFile.Buffercreate(int capacity) Returns a newAIFile.Bufferinstance allocated withBufferUtils.static AIFilecreate(long address) Returns a newAIFileinstance for the specified memory address.static AIFile.Buffercreate(long address, int capacity) Create aAIFile.Bufferinstance at the specified memory.static @Nullable AIFilecreateSafe(long address) static @Nullable AIFile.BuffercreateSafe(long address, int capacity) FileSizeProc(AIFileTellProcI value) Sets the specified value to theFileSizeProcfield.FlushProc(AIFileFlushProcI value) Sets the specified value to theFlushProcfield.static AIFilemalloc()Returns a newAIFileinstance allocated withmemAlloc.static AIFile.Buffermalloc(int capacity) Returns a newAIFile.Bufferinstance allocated withmemAlloc.static AIFile.Buffermalloc(int capacity, MemoryStack stack) Returns a newAIFile.Bufferinstance allocated on the specifiedMemoryStack.static AIFilemalloc(MemoryStack stack) Returns a newAIFileinstance allocated on the specifiedMemoryStack.static AIFileTellProcnFileSizeProc(long struct) Unsafe version ofFileSizeProc().static voidnFileSizeProc(long struct, AIFileTellProcI value) Unsafe version ofFileSizeProc.static AIFileFlushProcnFlushProc(long struct) Unsafe version ofFlushProc().static voidnFlushProc(long struct, AIFileFlushProcI value) Unsafe version ofFlushProc.static AIFileReadProcnReadProc(long struct) Unsafe version ofReadProc().static voidnReadProc(long struct, AIFileReadProcI value) Unsafe version ofReadProc.static AIFileSeeknSeekProc(long struct) Unsafe version ofSeekProc().static voidnSeekProc(long struct, AIFileSeekI value) Unsafe version ofSeekProc.static AIFileTellProcnTellProc(long struct) Unsafe version ofTellProc().static voidnTellProc(long struct, AIFileTellProcI value) Unsafe version ofTellProc.static longnUserData(long struct) Unsafe version ofUserData().static voidnUserData(long struct, long value) Unsafe version ofUserData.static AIFileWriteProcnWriteProc(long struct) Unsafe version ofWriteProc().static voidnWriteProc(long struct, AIFileWriteProcI value) Unsafe version ofWriteProc.ReadProc()ReadProc(AIFileReadProcI value) Sets the specified value to theReadProcfield.SeekProc()SeekProc(AIFileSeekI value) Sets the specified value to theSeekProcfield.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.intsizeof()Returnssizeof(struct).TellProc()TellProc(AIFileTellProcI value) Sets the specified value to theTellProcfield.longUserData()UserData(long value) Sets the specified value to theUserDatafield.static voidvalidate(long struct) Validates pointer members that should not beNULL.WriteProc(AIFileWriteProcI value) Sets the specified value to theWriteProcfield.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. -
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 aAIFileinstance 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). -
ReadProc
- Returns:
- the value of the
ReadProcfield.
-
WriteProc
- Returns:
- the value of the
WriteProcfield.
-
TellProc
- Returns:
- the value of the
TellProcfield.
-
FileSizeProc
- Returns:
- the value of the
FileSizeProcfield.
-
SeekProc
- Returns:
- the value of the
SeekProcfield.
-
FlushProc
- Returns:
- the value of the
FlushProcfield.
-
UserData
public long UserData()- Returns:
- the value of the
UserDatafield.
-
ReadProc
Sets the specified value to theReadProcfield. -
WriteProc
Sets the specified value to theWriteProcfield. -
TellProc
Sets the specified value to theTellProcfield. -
FileSizeProc
Sets the specified value to theFileSizeProcfield. -
SeekProc
Sets the specified value to theSeekProcfield. -
FlushProc
Sets the specified value to theFlushProcfield. -
UserData
Sets the specified value to theUserDatafield. -
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 newAIFileinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAIFileinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAIFileinstance allocated withBufferUtils. -
create
Returns a newAIFileinstance for the specified memory address. -
createSafe
-
malloc
Returns a newAIFile.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAIFile.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAIFile.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAIFile.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newAIFileinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAIFileinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAIFile.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAIFile.Bufferinstance allocated on the specifiedMemoryStackand 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
-