public class AIFileIO
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
OpenProc – Function used to open a new fileCloseProc – Function used to close an existing fileUserData – User-defined, opaque data
struct aiFileIO {
aiFileOpenProc OpenProc;
aiFileCloseProc CloseProc;
aiUserData UserData;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIFileIO.Buffer
An array of
AIFileIO structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CLOSEPROC
The struct member offsets.
|
static int |
OPENPROC
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
USERDATA
The struct member offsets.
|
| Constructor and Description |
|---|
AIFileIO(java.nio.ByteBuffer container)
Creates a
AIFileIO instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIFileIO |
calloc()
Returns a new
AIFileIO instance allocated with memCalloc. |
static AIFileIO.Buffer |
calloc(int capacity)
Returns a new
AIFileIO.Buffer instance allocated with memCalloc. |
static AIFileIO |
callocStack()
Returns a new
AIFileIO instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIFileIO.Buffer |
callocStack(int capacity)
Returns a new
AIFileIO.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIFileIO.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIFileIO.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIFileIO |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIFileIO instance allocated on the specified MemoryStack and initializes all its bits to zero. |
AIFileCloseProc |
CloseProc()
Returns the value of the
CloseProc field. |
AIFileIO |
CloseProc(AIFileCloseProcI value)
Sets the specified value to the
CloseProc field. |
static AIFileIO |
create()
Returns a new
AIFileIO instance allocated with BufferUtils. |
static AIFileIO.Buffer |
create(int capacity)
Returns a new
AIFileIO.Buffer instance allocated with BufferUtils. |
static AIFileIO |
create(long address)
Returns a new
AIFileIO instance for the specified memory address. |
static AIFileIO.Buffer |
create(long address,
int capacity)
Create a
AIFileIO.Buffer instance at the specified memory. |
static AIFileIO |
createSafe(long address)
|
static AIFileIO.Buffer |
createSafe(long address,
int capacity)
|
static AIFileIO |
malloc()
Returns a new
AIFileIO instance allocated with memAlloc. |
static AIFileIO.Buffer |
malloc(int capacity)
Returns a new
AIFileIO.Buffer instance allocated with memAlloc. |
static AIFileIO |
mallocStack()
Returns a new
AIFileIO instance allocated on the thread-local MemoryStack. |
static AIFileIO.Buffer |
mallocStack(int capacity)
Returns a new
AIFileIO.Buffer instance allocated on the thread-local MemoryStack. |
static AIFileIO.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIFileIO.Buffer instance allocated on the specified MemoryStack. |
static AIFileIO |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIFileIO instance allocated on the specified MemoryStack. |
static AIFileCloseProc |
nCloseProc(long struct)
Unsafe version of
CloseProc(). |
static void |
nCloseProc(long struct,
AIFileCloseProcI value)
Unsafe version of
CloseProc. |
static AIFileOpenProc |
nOpenProc(long struct)
Unsafe version of
OpenProc(). |
static void |
nOpenProc(long struct,
AIFileOpenProcI value)
Unsafe version of
OpenProc. |
static long |
nUserData(long struct)
Unsafe version of
UserData(). |
static void |
nUserData(long struct,
long value)
Unsafe version of
UserData. |
AIFileOpenProc |
OpenProc()
Returns the value of the
OpenProc field. |
AIFileIO |
OpenProc(AIFileOpenProcI value)
Sets the specified value to the
OpenProc field. |
AIFileIO |
set(AIFileIO src)
Copies the specified struct data to this struct.
|
AIFileIO |
set(AIFileOpenProcI OpenProc,
AIFileCloseProcI CloseProc,
long UserData)
Initializes this struct with the specified values.
|
int |
sizeof() |
long |
UserData()
Returns the value of the
UserData field. |
AIFileIO |
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. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int OPENPROC
public static final int CLOSEPROC
public static final int USERDATA
public AIFileIO(java.nio.ByteBuffer container)
AIFileIO 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 AIFileOpenProc OpenProc()
OpenProc field.public AIFileCloseProc CloseProc()
CloseProc field.public long UserData()
UserData field.public AIFileIO OpenProc(AIFileOpenProcI value)
OpenProc field.public AIFileIO CloseProc(AIFileCloseProcI value)
CloseProc field.public AIFileIO UserData(long value)
UserData field.public AIFileIO set(AIFileOpenProcI OpenProc, AIFileCloseProcI CloseProc, long UserData)
public AIFileIO set(AIFileIO src)
src - the source structpublic static AIFileIO malloc()
AIFileIO instance allocated with memAlloc. The instance must be explicitly freed.public static AIFileIO calloc()
AIFileIO instance allocated with memCalloc. The instance must be explicitly freed.public static AIFileIO create()
AIFileIO instance allocated with BufferUtils.public static AIFileIO create(long address)
AIFileIO instance for the specified memory address.@Nullable public static AIFileIO createSafe(long address)
public static AIFileIO.Buffer malloc(int capacity)
AIFileIO.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIFileIO.Buffer calloc(int capacity)
AIFileIO.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIFileIO.Buffer create(int capacity)
AIFileIO.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIFileIO.Buffer create(long address, int capacity)
AIFileIO.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIFileIO.Buffer createSafe(long address, int capacity)
public static AIFileIO mallocStack()
AIFileIO instance allocated on the thread-local MemoryStack.public static AIFileIO callocStack()
AIFileIO instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIFileIO mallocStack(org.lwjgl.system.MemoryStack stack)
AIFileIO instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIFileIO callocStack(org.lwjgl.system.MemoryStack stack)
AIFileIO instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIFileIO.Buffer mallocStack(int capacity)
AIFileIO.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIFileIO.Buffer callocStack(int capacity)
AIFileIO.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIFileIO.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIFileIO.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIFileIO.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIFileIO.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 AIFileOpenProc nOpenProc(long struct)
OpenProc().public static AIFileCloseProc nCloseProc(long struct)
CloseProc().public static long nUserData(long struct)
UserData().public static void nOpenProc(long struct,
AIFileOpenProcI value)
OpenProc.public static void nCloseProc(long struct,
AIFileCloseProcI value)
CloseProc.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.