public class AIMetaDataEntry
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct aiMetadataEntry {
aiMetadataType mType;
void * mData;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIMetaDataEntry.Buffer
An array of
AIMetaDataEntry structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MDATA
The struct member offsets.
|
static int |
MTYPE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
AIMetaDataEntry(java.nio.ByteBuffer container)
Creates a
AIMetaDataEntry instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIMetaDataEntry |
calloc()
Returns a new
AIMetaDataEntry instance allocated with memCalloc. |
static AIMetaDataEntry.Buffer |
calloc(int capacity)
Returns a new
AIMetaDataEntry.Buffer instance allocated with memCalloc. |
static AIMetaDataEntry |
callocStack()
Returns a new
AIMetaDataEntry instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIMetaDataEntry.Buffer |
callocStack(int capacity)
Returns a new
AIMetaDataEntry.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIMetaDataEntry.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIMetaDataEntry.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIMetaDataEntry |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIMetaDataEntry instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIMetaDataEntry |
create()
Returns a new
AIMetaDataEntry instance allocated with BufferUtils. |
static AIMetaDataEntry.Buffer |
create(int capacity)
Returns a new
AIMetaDataEntry.Buffer instance allocated with BufferUtils. |
static AIMetaDataEntry |
create(long address)
Returns a new
AIMetaDataEntry instance for the specified memory address. |
static AIMetaDataEntry.Buffer |
create(long address,
int capacity)
Create a
AIMetaDataEntry.Buffer instance at the specified memory. |
static AIMetaDataEntry |
createSafe(long address)
|
static AIMetaDataEntry.Buffer |
createSafe(long address,
int capacity)
|
static AIMetaDataEntry |
malloc()
Returns a new
AIMetaDataEntry instance allocated with memAlloc. |
static AIMetaDataEntry.Buffer |
malloc(int capacity)
Returns a new
AIMetaDataEntry.Buffer instance allocated with memAlloc. |
static AIMetaDataEntry |
mallocStack()
Returns a new
AIMetaDataEntry instance allocated on the thread-local MemoryStack. |
static AIMetaDataEntry.Buffer |
mallocStack(int capacity)
Returns a new
AIMetaDataEntry.Buffer instance allocated on the thread-local MemoryStack. |
static AIMetaDataEntry.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIMetaDataEntry.Buffer instance allocated on the specified MemoryStack. |
static AIMetaDataEntry |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIMetaDataEntry instance allocated on the specified MemoryStack. |
AIMetaDataEntry |
mData(java.nio.ByteBuffer value)
Sets the address of the specified
ByteBuffer to the mData field. |
java.nio.ByteBuffer |
mData(int capacity)
Returns a
ByteBuffer view of the data pointed to by the mData field. |
int |
mType()
Returns the value of the
mType field. |
AIMetaDataEntry |
mType(int value)
Sets the specified value to the
mType field. |
static void |
nmData(long struct,
java.nio.ByteBuffer value)
Unsafe version of
mData. |
static java.nio.ByteBuffer |
nmData(long struct,
int capacity)
Unsafe version of
mData. |
static int |
nmType(long struct)
Unsafe version of
mType(). |
static void |
nmType(long struct,
int value)
Unsafe version of
mType. |
AIMetaDataEntry |
set(AIMetaDataEntry src)
Copies the specified struct data to this struct.
|
AIMetaDataEntry |
set(int mType,
java.nio.ByteBuffer mData)
Initializes this struct with the specified values.
|
int |
sizeof() |
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 MTYPE
public static final int MDATA
public AIMetaDataEntry(java.nio.ByteBuffer container)
AIMetaDataEntry 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 int mType()
mType field.public java.nio.ByteBuffer mData(int capacity)
ByteBuffer view of the data pointed to by the mData field.capacity - the number of elements in the returned bufferpublic AIMetaDataEntry mType(int value)
mType field.public AIMetaDataEntry mData(java.nio.ByteBuffer value)
ByteBuffer to the mData field.public AIMetaDataEntry set(int mType, java.nio.ByteBuffer mData)
public AIMetaDataEntry set(AIMetaDataEntry src)
src - the source structpublic static AIMetaDataEntry malloc()
AIMetaDataEntry instance allocated with memAlloc. The instance must be explicitly freed.public static AIMetaDataEntry calloc()
AIMetaDataEntry instance allocated with memCalloc. The instance must be explicitly freed.public static AIMetaDataEntry create()
AIMetaDataEntry instance allocated with BufferUtils.public static AIMetaDataEntry create(long address)
AIMetaDataEntry instance for the specified memory address.@Nullable public static AIMetaDataEntry createSafe(long address)
public static AIMetaDataEntry.Buffer malloc(int capacity)
AIMetaDataEntry.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIMetaDataEntry.Buffer calloc(int capacity)
AIMetaDataEntry.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIMetaDataEntry.Buffer create(int capacity)
AIMetaDataEntry.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIMetaDataEntry.Buffer create(long address, int capacity)
AIMetaDataEntry.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIMetaDataEntry.Buffer createSafe(long address, int capacity)
public static AIMetaDataEntry mallocStack()
AIMetaDataEntry instance allocated on the thread-local MemoryStack.public static AIMetaDataEntry callocStack()
AIMetaDataEntry instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIMetaDataEntry mallocStack(org.lwjgl.system.MemoryStack stack)
AIMetaDataEntry instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIMetaDataEntry callocStack(org.lwjgl.system.MemoryStack stack)
AIMetaDataEntry instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIMetaDataEntry.Buffer mallocStack(int capacity)
AIMetaDataEntry.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIMetaDataEntry.Buffer callocStack(int capacity)
AIMetaDataEntry.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIMetaDataEntry.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIMetaDataEntry.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIMetaDataEntry.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIMetaDataEntry.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 int nmType(long struct)
mType().public static java.nio.ByteBuffer nmData(long struct,
int capacity)
mData.public static void nmType(long struct,
int value)
mType.public static void nmData(long struct,
java.nio.ByteBuffer value)
mData.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.