Package org.lwjgl.bgfx
Class BGFXAllocatorInterface
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class BGFXAllocatorInterface
extends Struct<BGFXAllocatorInterface>
implements NativeResource
struct bgfx_allocator_interface_t {
{@link BGFXAllocatorVtbl bgfx_allocator_vtbl_t} const * vtbl;
}-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBGFXAllocatorInterface(ByteBuffer container) Creates aBGFXAllocatorInterfaceinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic BGFXAllocatorInterfacecalloc()Returns a newBGFXAllocatorInterfaceinstance allocated withmemCalloc.static BGFXAllocatorInterfacecalloc(MemoryStack stack) Returns a newBGFXAllocatorInterfaceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXAllocatorInterfaceDeprecated.static BGFXAllocatorInterfacecallocStack(MemoryStack stack) Deprecated.static BGFXAllocatorInterfacecreate()Returns a newBGFXAllocatorInterfaceinstance allocated withBufferUtils.static BGFXAllocatorInterfacecreate(long address) Returns a newBGFXAllocatorInterfaceinstance for the specified memory address.static @Nullable BGFXAllocatorInterfacecreateSafe(long address) static BGFXAllocatorInterfacemalloc()Returns a newBGFXAllocatorInterfaceinstance allocated withmemAlloc.static BGFXAllocatorInterfacemalloc(MemoryStack stack) Returns a newBGFXAllocatorInterfaceinstance allocated on the specifiedMemoryStack.static BGFXAllocatorInterfaceDeprecated.static BGFXAllocatorInterfacemallocStack(MemoryStack stack) Deprecated.static BGFXAllocatorVtblnvtbl(long struct) Unsafe version ofvtbl().static voidnvtbl(long struct, BGFXAllocatorVtbl value) Unsafe version ofvtbl.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.vtbl()vtbl(BGFXAllocatorVtbl value) Sets the address of the specifiedBGFXAllocatorVtblto thevtblfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
VTBL
public static final int VTBLThe struct member offsets.
-
-
Constructor Details
-
BGFXAllocatorInterface
Creates aBGFXAllocatorInterfaceinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<BGFXAllocatorInterface>
-
vtbl
- Returns:
- a
BGFXAllocatorVtblview of the struct pointed to by thevtblfield.
-
vtbl
Sets the address of the specifiedBGFXAllocatorVtblto thevtblfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newBGFXAllocatorInterfaceinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newBGFXAllocatorInterfaceinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newBGFXAllocatorInterfaceinstance allocated withBufferUtils. -
create
Returns a newBGFXAllocatorInterfaceinstance for the specified memory address. -
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
malloc
Returns a newBGFXAllocatorInterfaceinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newBGFXAllocatorInterfaceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
nvtbl
Unsafe version ofvtbl(). -
nvtbl
Unsafe version ofvtbl. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-