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.
struct aiFile {
aiFileReadProc ReadProc;
aiFileWriteProc WriteProc;
aiFileTellProc TellProc;
aiFileTellProc FileSizeProc;
aiFileSeek SeekProc;
aiFileFlushProc FlushProc;
aiUserData UserData;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | AIFile.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | FILESIZEPROC
The struct member offsets. |
| public static final int | FLUSHPROC
The struct member offsets. |
| public static final int | READPROC
The struct member offsets. |
| public static final int | SEEKPROC
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TELLPROC
The struct member offsets. |
| public static final int | USERDATA
The struct member offsets. |
| public static final int | WRITEPROC
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | AIFile(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static AIFile | |
| public static AIFile. | calloc(int
the buffer capacity capacity)Returns a new |
| public static AIFile | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AIFile. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static AIFile | |
| public static AIFile | |
| public static AIFile. | |
| public static AIFile. | |
| protected AIFile | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static AIFile | |
| public static AIFile | |
| public static AIFile. | create(int
the buffer capacity capacity)Returns a new |
| public static AIFile. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static AIFile | |
| public static AIFile. | |
| public AIFileTellProc | |
| public AIFile | |
| public AIFileFlushProc | |
| public AIFile | |
| public static AIFile | |
| public static AIFile. | malloc(int
the buffer capacity capacity)Returns a new |
| public static AIFile | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AIFile. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static AIFile | |
| public static AIFile | |
| public static AIFile. | |
| public static AIFile. | |
| public static AIFileTellProc | |
| public static void | |
| public static AIFileFlushProc | |
| public static void | |
| public static AIFileReadProc | |
| public static void | |
| public static AIFileSeek | |
| public static void | |
| public static AIFileTellProc | |
| public static void | |
| public static long | |
| public static void | |
| public static AIFileWriteProc | |
| public static void | |
| public AIFileReadProc | |
| public AIFile | |
| public AIFileSeek | |
| public AIFile | |
| public AIFile | set(AIFileReadProcI ReadProc, AIFileWriteProcI WriteProc, AIFileTellProcI TellProc, AIFileTellProcI FileSizeProc, AIFileSeekI SeekProc, AIFileFlushProcI FlushProc, long UserData)
Initializes this struct with the specified values. |
| public AIFile | |
| public int | |
| public AIFileTellProc | |
| public AIFile | |
| public long | |
| public AIFile | |
| public static void | |
| public AIFileWriteProc | |
| public AIFile |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| FILESIZEPROC | back to summary |
|---|---|
| public static final int FILESIZEPROC The struct member offsets. | |
| FLUSHPROC | back to summary |
|---|---|
| public static final int FLUSHPROC The struct member offsets. | |
| READPROC | back to summary |
|---|---|
| public static final int READPROC The struct member offsets. | |
| SEEKPROC | back to summary |
|---|---|
| public static final int SEEKPROC The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TELLPROC | back to summary |
|---|---|
| public static final int TELLPROC The struct member offsets. | |
| USERDATA | back to summary |
|---|---|
| public static final int USERDATA The struct member offsets. | |
| WRITEPROC | back to summary |
|---|---|
| public static final int WRITEPROC The struct member offsets. | |
| AIFile | back to summary |
|---|---|
| protected AIFile(long address, ByteBuffer container) | |
| AIFile | back to summary |
|---|---|
| public AIFile(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static AIFile calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static AIFile. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static AIFile calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static AIFile. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static AIFile callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static AIFile callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static AIFile. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static AIFile. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected AIFile create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static AIFile create() Returns a new | |
| create | back to summary |
|---|---|
| public static AIFile create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static AIFile. Returns a new
| |
| create | back to summary |
|---|---|
| public static AIFile. Create a
| |
| createSafe | back to summary |
|---|---|
| public static AIFile createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static AIFile. Like
| |
| FileSizeProc | back to summary |
|---|---|
| public AIFileTellProc FileSizeProc() Callback to retrieve the size of the file, in bytes
| |
| FileSizeProc | back to summary |
|---|---|
| public AIFile FileSizeProc(AIFileTellProcI value) Sets the specified value to the | |
| FlushProc | back to summary |
|---|---|
| public AIFileFlushProc FlushProc() Callback to flush the file contents
| |
| FlushProc | back to summary |
|---|---|
| public AIFile FlushProc(AIFileFlushProcI value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static AIFile malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static AIFile. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static AIFile malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static AIFile. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static AIFile mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static AIFile mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static AIFile. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static AIFile. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nFileSizeProc | back to summary |
|---|---|
| public static AIFileTellProc nFileSizeProc(long struct) Unsafe version of | |
| nFileSizeProc | back to summary |
|---|---|
| public static void nFileSizeProc(long struct, AIFileTellProcI value) Unsafe version of | |
| nFlushProc | back to summary |
|---|---|
| public static AIFileFlushProc nFlushProc(long struct) Unsafe version of | |
| nFlushProc | back to summary |
|---|---|
| public static void nFlushProc(long struct, AIFileFlushProcI value) Unsafe version of | |
| nReadProc | back to summary |
|---|---|
| public static AIFileReadProc nReadProc(long struct) Unsafe version of | |
| nReadProc | back to summary |
|---|---|
| public static void nReadProc(long struct, AIFileReadProcI value) Unsafe version of | |
| nSeekProc | back to summary |
|---|---|
| public static AIFileSeek nSeekProc(long struct) Unsafe version of | |
| nSeekProc | back to summary |
|---|---|
| public static void nSeekProc(long struct, AIFileSeekI value) Unsafe version of | |
| nTellProc | back to summary |
|---|---|
| public static AIFileTellProc nTellProc(long struct) Unsafe version of | |
| nTellProc | back to summary |
|---|---|
| public static void nTellProc(long struct, AIFileTellProcI value) Unsafe version of | |
| nUserData | back to summary |
|---|---|
| public static long nUserData(long struct) Unsafe version of | |
| nUserData | back to summary |
|---|---|
| public static void nUserData(long struct, long value) Unsafe version of | |
| nWriteProc | back to summary |
|---|---|
| public static AIFileWriteProc nWriteProc(long struct) Unsafe version of | |
| nWriteProc | back to summary |
|---|---|
| public static void nWriteProc(long struct, AIFileWriteProcI value) Unsafe version of | |
| ReadProc | back to summary |
|---|---|
| public AIFileReadProc ReadProc() Callback to read from a file
| |
| ReadProc | back to summary |
|---|---|
| public AIFile ReadProc(AIFileReadProcI value) Sets the specified value to the | |
| SeekProc | back to summary |
|---|---|
| public AIFileSeek SeekProc() Callback to set the current position of the file cursor (fseek())
| |
| SeekProc | back to summary |
|---|---|
| public AIFile SeekProc(AIFileSeekI value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| 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 | back to summary |
|---|---|
| public AIFile set(AIFile src) Copies the specified struct data to this struct. | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| TellProc | back to summary |
|---|---|
| public AIFileTellProc TellProc() Callback to retrieve the current position of the file cursor (ftell())
| |
| TellProc | back to summary |
|---|---|
| public AIFile TellProc(AIFileTellProcI value) Sets the specified value to the | |
| UserData | back to summary |
|---|---|
| public long UserData() User-defined, opaque data
| |
| UserData | back to summary |
|---|---|
| public AIFile UserData(long value) Sets the specified value to the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
| WriteProc | back to summary |
|---|---|
| public AIFileWriteProc WriteProc() Callback to write to a file
| |
| WriteProc | back to summary |
|---|---|
| public AIFile WriteProc(AIFileWriteProcI value) Sets the specified value to the | |
AIFile structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final AIFile |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public AIFileTellProc | |
| public AIFile. | |
| public AIFileFlushProc | |
| public AIFile. | |
| protected AIFile | |
| public AIFileReadProc | |
| public AIFile. | |
| public AIFileSeek | |
| public AIFile. | |
| protected AIFile. | |
| public AIFileTellProc | |
| public AIFile. | |
| public long | |
| public AIFile. | |
| public AIFileWriteProc | |
| public AIFile. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final AIFile ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| FileSizeProc | back to summary |
|---|---|
public AIFileTellProc FileSizeProc()
| |
| FileSizeProc | back to summary |
|---|---|
| public AIFile. Sets the specified value to the | |
| FlushProc | back to summary |
|---|---|
public AIFileFlushProc FlushProc()
| |
| FlushProc | back to summary |
|---|---|
| public AIFile. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected AIFile getElementFactory() Implements abstract org.
| |
| ReadProc | back to summary |
|---|---|
public AIFileReadProc ReadProc()
| |
| ReadProc | back to summary |
|---|---|
| public AIFile. Sets the specified value to the | |
| SeekProc | back to summary |
|---|---|
public AIFileSeek SeekProc()
| |
| SeekProc | back to summary |
|---|---|
| public AIFile. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected AIFile. Implements abstract org.
| |
| TellProc | back to summary |
|---|---|
public AIFileTellProc TellProc()
| |
| TellProc | back to summary |
|---|---|
| public AIFile. Sets the specified value to the | |
| UserData | back to summary |
|---|---|
public long UserData()
| |
| UserData | back to summary |
|---|---|
| public AIFile. Sets the specified value to the | |
| WriteProc | back to summary |
|---|---|
public AIFileWriteProc WriteProc()
| |
| WriteProc | back to summary |
|---|---|
| public AIFile. Sets the specified value to the | |