public class BGFXAllocatorInterface
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
vtbl – the allocator virtual table
struct bgfx_allocator_interface_t {
bgfx_allocator_vtbl_t const * vtbl;
}| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
VTBL
The struct member offsets.
|
| Constructor and Description |
|---|
BGFXAllocatorInterface(java.nio.ByteBuffer container)
Creates a
BGFXAllocatorInterface instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static BGFXAllocatorInterface |
calloc()
Returns a new
BGFXAllocatorInterface instance allocated with memCalloc. |
static BGFXAllocatorInterface |
callocStack()
Returns a new
BGFXAllocatorInterface instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXAllocatorInterface |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXAllocatorInterface instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BGFXAllocatorInterface |
create()
Returns a new
BGFXAllocatorInterface instance allocated with BufferUtils. |
static BGFXAllocatorInterface |
create(long address)
Returns a new
BGFXAllocatorInterface instance for the specified memory address. |
static BGFXAllocatorInterface |
createSafe(long address)
|
static BGFXAllocatorInterface |
malloc()
Returns a new
BGFXAllocatorInterface instance allocated with memAlloc. |
static BGFXAllocatorInterface |
mallocStack()
Returns a new
BGFXAllocatorInterface instance allocated on the thread-local MemoryStack. |
static BGFXAllocatorInterface |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXAllocatorInterface instance allocated on the specified MemoryStack. |
static BGFXAllocatorVtbl |
nvtbl(long struct)
Unsafe version of
vtbl(). |
static void |
nvtbl(long struct,
BGFXAllocatorVtbl value)
Unsafe version of
vtbl. |
BGFXAllocatorInterface |
set(BGFXAllocatorInterface src)
Copies the specified struct data to this struct.
|
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. |
BGFXAllocatorVtbl |
vtbl()
Returns a
BGFXAllocatorVtbl view of the struct pointed to by the vtbl field. |
BGFXAllocatorInterface |
vtbl(BGFXAllocatorVtbl value)
Sets the address of the specified
BGFXAllocatorVtbl to the vtbl field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int VTBL
public BGFXAllocatorInterface(java.nio.ByteBuffer container)
BGFXAllocatorInterface 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 BGFXAllocatorVtbl vtbl()
BGFXAllocatorVtbl view of the struct pointed to by the vtbl field.public BGFXAllocatorInterface vtbl(BGFXAllocatorVtbl value)
BGFXAllocatorVtbl to the vtbl field.public BGFXAllocatorInterface set(BGFXAllocatorInterface src)
src - the source structpublic static BGFXAllocatorInterface malloc()
BGFXAllocatorInterface instance allocated with memAlloc. The instance must be explicitly freed.public static BGFXAllocatorInterface calloc()
BGFXAllocatorInterface instance allocated with memCalloc. The instance must be explicitly freed.public static BGFXAllocatorInterface create()
BGFXAllocatorInterface instance allocated with BufferUtils.public static BGFXAllocatorInterface create(long address)
BGFXAllocatorInterface instance for the specified memory address.@Nullable public static BGFXAllocatorInterface createSafe(long address)
public static BGFXAllocatorInterface mallocStack()
BGFXAllocatorInterface instance allocated on the thread-local MemoryStack.public static BGFXAllocatorInterface callocStack()
BGFXAllocatorInterface instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static BGFXAllocatorInterface mallocStack(org.lwjgl.system.MemoryStack stack)
BGFXAllocatorInterface instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static BGFXAllocatorInterface callocStack(org.lwjgl.system.MemoryStack stack)
BGFXAllocatorInterface instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static BGFXAllocatorVtbl nvtbl(long struct)
vtbl().public static void nvtbl(long struct,
BGFXAllocatorVtbl value)
vtbl.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.