public class AIFile
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The default implementation of the functions utilizes the fXXX functions from the CRT. However, you can supply a custom implementation to Assimp by
delivering a custom AIFileIO. Use this to enable reading from other sources, such as ZIP archives or memory locations.
ReadProc – Callback to read from a fileWriteProc – Callback to write to a fileTellProc – Callback to retrieve the current position of the file cursor (ftell())FileSizeProc – Callback to retrieve the size of the file, in bytesSeekProc – Callback to set the current position of the file cursor (fseek())FlushProc – Callback to flush the file contentsUserData – User-defined, opaque data
struct aiFile {
aiFileReadProc ReadProc;
aiFileWriteProc WriteProc;
aiFileTellProc TellProc;
aiFileTellProc FileSizeProc;
aiFileSeek SeekProc;
aiFileFlushProc FlushProc;
aiUserData UserData;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIFile.Buffer
An array of
AIFile structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FILESIZEPROC
The struct member offsets.
|
static int |
FLUSHPROC
The struct member offsets.
|
static int |
READPROC
The struct member offsets.
|
static int |
SEEKPROC
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TELLPROC
The struct member offsets.
|
static int |
USERDATA
The struct member offsets.
|
static int |
WRITEPROC
The struct member offsets.
|
| Constructor and Description |
|---|
AIFile(java.nio.ByteBuffer container)
Creates a
AIFile instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIFile |
calloc()
Returns a new
AIFile instance allocated with memCalloc. |
static AIFile.Buffer |
calloc(int capacity)
Returns a new
AIFile.Buffer instance allocated with memCalloc. |
static AIFile |
callocStack()
Returns a new
AIFile instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIFile.Buffer |
callocStack(int capacity)
Returns a new
AIFile.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIFile.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIFile.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIFile |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIFile instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIFile |
create()
Returns a new
AIFile instance allocated with BufferUtils. |
static AIFile.Buffer |
create(int capacity)
Returns a new
AIFile.Buffer instance allocated with BufferUtils. |
static AIFile |
create(long address)
Returns a new
AIFile instance for the specified memory address. |
static AIFile.Buffer |
create(long address,
int capacity)
Create a
AIFile.Buffer instance at the specified memory. |
static AIFile |
createSafe(long address)
|
static AIFile.Buffer |
createSafe(long address,
int capacity)
|
AIFileTellProc |
FileSizeProc()
Returns the value of the
FileSizeProc field. |
AIFile |
FileSizeProc(AIFileTellProcI value)
Sets the specified value to the
FileSizeProc field. |
AIFileFlushProc |
FlushProc()
Returns the value of the
FlushProc field. |
AIFile |
FlushProc(AIFileFlushProcI value)
Sets the specified value to the
FlushProc field. |
static AIFile |
malloc()
Returns a new
AIFile instance allocated with memAlloc. |
static AIFile.Buffer |
malloc(int capacity)
Returns a new
AIFile.Buffer instance allocated with memAlloc. |
static AIFile |
mallocStack()
Returns a new
AIFile instance allocated on the thread-local MemoryStack. |
static AIFile.Buffer |
mallocStack(int capacity)
Returns a new
AIFile.Buffer instance allocated on the thread-local MemoryStack. |
static AIFile.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIFile.Buffer instance allocated on the specified MemoryStack. |
static AIFile |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIFile instance allocated on the specified MemoryStack. |
static AIFileTellProc |
nFileSizeProc(long struct)
Unsafe version of
FileSizeProc(). |
static void |
nFileSizeProc(long struct,
AIFileTellProcI value)
Unsafe version of
FileSizeProc. |
static AIFileFlushProc |
nFlushProc(long struct)
Unsafe version of
FlushProc(). |
static void |
nFlushProc(long struct,
AIFileFlushProcI value)
Unsafe version of
FlushProc. |
static AIFileReadProc |
nReadProc(long struct)
Unsafe version of
ReadProc(). |
static void |
nReadProc(long struct,
AIFileReadProcI value)
Unsafe version of
ReadProc. |
static AIFileSeek |
nSeekProc(long struct)
Unsafe version of
SeekProc(). |
static void |
nSeekProc(long struct,
AIFileSeekI value)
Unsafe version of
SeekProc. |
static AIFileTellProc |
nTellProc(long struct)
Unsafe version of
TellProc(). |
static void |
nTellProc(long struct,
AIFileTellProcI value)
Unsafe version of
TellProc. |
static long |
nUserData(long struct)
Unsafe version of
UserData(). |
static void |
nUserData(long struct,
long value)
Unsafe version of
UserData. |
static AIFileWriteProc |
nWriteProc(long struct)
Unsafe version of
WriteProc(). |
static void |
nWriteProc(long struct,
AIFileWriteProcI value)
Unsafe version of
WriteProc. |
AIFileReadProc |
ReadProc()
Returns the value of the
ReadProc field. |
AIFile |
ReadProc(AIFileReadProcI value)
Sets the specified value to the
ReadProc field. |
AIFileSeek |
SeekProc()
Returns the value of the
SeekProc field. |
AIFile |
SeekProc(AIFileSeekI value)
Sets the specified value to the
SeekProc field. |
AIFile |
set(AIFile src)
Copies the specified struct data to this struct.
|
AIFile |
set(AIFileReadProcI ReadProc,
AIFileWriteProcI WriteProc,
AIFileTellProcI TellProc,
AIFileTellProcI FileSizeProc,
AIFileSeekI SeekProc,
AIFileFlushProcI FlushProc,
long UserData)
Initializes this struct with the specified values.
|
int |
sizeof() |
AIFileTellProc |
TellProc()
Returns the value of the
TellProc field. |
AIFile |
TellProc(AIFileTellProcI value)
Sets the specified value to the
TellProc field. |
long |
UserData()
Returns the value of the
UserData field. |
AIFile |
UserData(long value)
Sets the specified value to the
UserData field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
AIFileWriteProc |
WriteProc()
Returns the value of the
WriteProc field. |
AIFile |
WriteProc(AIFileWriteProcI value)
Sets the specified value to the
WriteProc field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int READPROC
public static final int WRITEPROC
public static final int TELLPROC
public static final int FILESIZEPROC
public static final int SEEKPROC
public static final int FLUSHPROC
public static final int USERDATA
public AIFile(java.nio.ByteBuffer container)
AIFile instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic AIFileReadProc ReadProc()
ReadProc field.public AIFileWriteProc WriteProc()
WriteProc field.public AIFileTellProc TellProc()
TellProc field.public AIFileTellProc FileSizeProc()
FileSizeProc field.public AIFileSeek SeekProc()
SeekProc field.public AIFileFlushProc FlushProc()
FlushProc field.public long UserData()
UserData field.public AIFile ReadProc(AIFileReadProcI value)
ReadProc field.public AIFile WriteProc(AIFileWriteProcI value)
WriteProc field.public AIFile TellProc(AIFileTellProcI value)
TellProc field.public AIFile FileSizeProc(AIFileTellProcI value)
FileSizeProc field.public AIFile SeekProc(AIFileSeekI value)
SeekProc field.public AIFile FlushProc(AIFileFlushProcI value)
FlushProc field.public AIFile UserData(long value)
UserData field.public AIFile set(AIFileReadProcI ReadProc, AIFileWriteProcI WriteProc, AIFileTellProcI TellProc, AIFileTellProcI FileSizeProc, AIFileSeekI SeekProc, AIFileFlushProcI FlushProc, long UserData)
public AIFile set(AIFile src)
src - the source structpublic static AIFile malloc()
AIFile instance allocated with memAlloc. The instance must be explicitly freed.public static AIFile calloc()
AIFile instance allocated with memCalloc. The instance must be explicitly freed.public static AIFile create()
AIFile instance allocated with BufferUtils.public static AIFile create(long address)
AIFile instance for the specified memory address.@Nullable public static AIFile createSafe(long address)
public static AIFile.Buffer malloc(int capacity)
AIFile.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIFile.Buffer calloc(int capacity)
AIFile.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIFile.Buffer create(int capacity)
AIFile.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIFile.Buffer create(long address, int capacity)
AIFile.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIFile.Buffer createSafe(long address, int capacity)
public static AIFile mallocStack()
AIFile instance allocated on the thread-local MemoryStack.public static AIFile callocStack()
AIFile instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIFile mallocStack(org.lwjgl.system.MemoryStack stack)
AIFile instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIFile callocStack(org.lwjgl.system.MemoryStack stack)
AIFile instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIFile.Buffer mallocStack(int capacity)
AIFile.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIFile.Buffer callocStack(int capacity)
AIFile.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIFile.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIFile.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIFile.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIFile.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIFileReadProc nReadProc(long struct)
ReadProc().public static AIFileWriteProc nWriteProc(long struct)
WriteProc().public static AIFileTellProc nTellProc(long struct)
TellProc().public static AIFileTellProc nFileSizeProc(long struct)
FileSizeProc().public static AIFileSeek nSeekProc(long struct)
SeekProc().public static AIFileFlushProc nFlushProc(long struct)
FlushProc().public static long nUserData(long struct)
UserData().public static void nReadProc(long struct,
AIFileReadProcI value)
ReadProc.public static void nWriteProc(long struct,
AIFileWriteProcI value)
WriteProc.public static void nTellProc(long struct,
AIFileTellProcI value)
TellProc.public static void nFileSizeProc(long struct,
AIFileTellProcI value)
FileSizeProc.public static void nSeekProc(long struct,
AIFileSeekI value)
SeekProc.public static void nFlushProc(long struct,
AIFileFlushProcI value)
FlushProc.public static void nUserData(long struct,
long value)
UserData.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.