Class BGFXReallocCallback

java.lang.Object
org.lwjgl.system.Callback
org.lwjgl.bgfx.BGFXReallocCallback
All Implemented Interfaces:
AutoCloseable, BGFXReallocCallbackI, CallbackI, NativeResource, Pointer

public abstract class BGFXReallocCallback extends Callback implements BGFXReallocCallbackI
Allocates memory.

Type


 void * (*BGFXReallocCallbackI.invoke(long, long, long, long, long, int)) (
     bgfx_allocator_interface_t *_this,
     void *_ptr,
     size_t _size,
     size_t _align,
     char *_file,
     uint32_t _line
 )
  • Method Details

    • create

      public static BGFXReallocCallback create(long functionPointer)
      Creates a BGFXReallocCallback instance from the specified function pointer.
      Returns:
      the new BGFXReallocCallback
    • createSafe

      @Nullable public static BGFXReallocCallback createSafe(long functionPointer)
      Like create, but returns null if functionPointer is NULL.
    • create

      public static BGFXReallocCallback create(BGFXReallocCallbackI instance)
      Creates a BGFXReallocCallback instance that delegates to the specified BGFXReallocCallbackI instance.