Top Description Inners Constructors Methods
org.lwjgl.bgfx

public abstract Class BGFXReallocCallback

extends Callback
implements BGFXReallocCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.bgfx.BGFXReallocCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.bgfx.BGFXReallocCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Allocates memory.

Type


void * (*invoke) (
    bgfx_allocator_interface_t *_this,
    void *_ptr,
    size_t _size,
    size_t _align,
    char *_file,
    uint32_t _line
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
BGFXReallocCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static BGFXReallocCallback

Returns:

the new BGFXReallocCallback
create
(long functionPointer)

Creates a BGFXReallocCallback instance from the specified function pointer.

public static BGFXReallocCallback
create(BGFXReallocCallbackI instance)

Creates a BGFXReallocCallback instance that delegates to the specified BGFXReallocCallbackI instance.

public static BGFXReallocCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

BGFXReallocCallbackback to summary
protected BGFXReallocCallback()
BGFXReallocCallbackback to summary
pack-priv BGFXReallocCallback(long functionPointer)

Method Detail

createback to summary
public static BGFXReallocCallback create(long functionPointer)

Creates a BGFXReallocCallback instance from the specified function pointer.

Returns:BGFXReallocCallback

the new BGFXReallocCallback

createback to summary
public static BGFXReallocCallback create(BGFXReallocCallbackI instance)

Creates a BGFXReallocCallback instance that delegates to the specified BGFXReallocCallbackI instance.

createSafeback to summary
public static BGFXReallocCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.bgfx back to summary

private final Class BGFXReallocCallback.Container

extends BGFXReallocCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final BGFXReallocCallbackI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, BGFXReallocCallbackI delegate)

Method Summary

Modifier and TypeMethod and Description
public long
invoke(long
the allocator interface
_this
,
long
the previously allocated memory or NULL
_ptr
,
long
the number of bytes to allocate
_size
,
long
the allocation alignment, in bytes
_align
,
long
file path where allocation was generated
_file
,
int
line where allocation was generated
_line
)

Implements org.lwjgl.bgfx.BGFXReallocCallbackI.invoke.

Will be called when an allocation is requested.
Inherited from org.lwjgl.bgfx.BGFXReallocCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final BGFXReallocCallbackI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, BGFXReallocCallbackI delegate)

Method Detail

invokeback to summary
public long invoke(long _this, long _ptr, long _size, long _align, long _file, int _line)

Implements org.lwjgl.bgfx.BGFXReallocCallbackI.invoke.

Doc from org.lwjgl.bgfx.BGFXReallocCallbackI.invoke.

Will be called when an allocation is requested.

Parameters
_this:long

the allocator interface

_ptr:long

the previously allocated memory or NULL

_size:long

the number of bytes to allocate

_align:long

the allocation alignment, in bytes

_file:long

file path where allocation was generated

_line:int

line where allocation was generated

Annotations
@Override