Top Description Inners Constructors Methods
org.lwjgl.system.rpmalloc

public abstract Class RPMapFailCallback

extends Callback
implements RPMapFailCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.rpmalloc.RPMapFailCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.system.rpmalloc.RPMapFailCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be set to the RPMallocConfig struct.

Type


int (*invoke) (
    size_t size
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static RPMapFailCallback

Returns:

the new RPMapFailCallback
create
(long functionPointer)

Creates a RPMapFailCallback instance from the specified function pointer.

public static RPMapFailCallback
create(RPMapFailCallbackI instance)

Creates a RPMapFailCallback instance that delegates to the specified RPMapFailCallbackI instance.

public static RPMapFailCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

RPMapFailCallbackback to summary
protected RPMapFailCallback()
RPMapFailCallbackback to summary
pack-priv RPMapFailCallback(long functionPointer)

Method Detail

createback to summary
public static RPMapFailCallback create(long functionPointer)

Creates a RPMapFailCallback instance from the specified function pointer.

Returns:RPMapFailCallback

the new RPMapFailCallback

createback to summary
public static RPMapFailCallback create(RPMapFailCallbackI instance)

Creates a RPMapFailCallback instance that delegates to the specified RPMapFailCallbackI instance.

createSafeback to summary
public static RPMapFailCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.system.rpmalloc back to summary

private final Class RPMapFailCallback.Container

extends RPMapFailCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final RPMapFailCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public int
invoke(long size)

Implements org.lwjgl.system.rpmalloc.RPMapFailCallbackI.invoke.

Called when a call to map memory pages fails (out of memory).
Inherited from org.lwjgl.system.rpmalloc.RPMapFailCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final RPMapFailCallbackI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public int invoke(long size)

Implements org.lwjgl.system.rpmalloc.RPMapFailCallbackI.invoke.

Doc from org.lwjgl.system.rpmalloc.RPMapFailCallbackI.invoke.

Called when a call to map memory pages fails (out of memory).

If this callback is not set or returns zero the library will return a null pointer in the allocation call. If this callback returns non-zero the map call will be retried. The argument passed is the number of bytes that was requested in the map call. Only used if the default system memory map function is used (memory_map callback is not set).

Annotations
@Override