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

public abstract Class MallocMessageCallback

extends Callback
implements MallocMessageCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.jemalloc.MallocMessageCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.system.jemalloc.MallocMessageCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be passed to the malloc_usable_size method.

Type


void (*invoke) (
    void *cbopaque,
    char const *s
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static MallocMessageCallback

Returns:

the new MallocMessageCallback
create
(long functionPointer)

Creates a MallocMessageCallback instance from the specified function pointer.

public static MallocMessageCallback
create(MallocMessageCallbackI instance)

Creates a MallocMessageCallback instance that delegates to the specified MallocMessageCallbackI instance.

public static MallocMessageCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public static String

Returns:

the message as a String
getMessage
(long
the MallocMessageCallback s argument
s
)

Converts the specified MallocMessageCallback arguments to a String.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

MallocMessageCallbackback to summary
protected MallocMessageCallback()
MallocMessageCallbackback to summary
pack-priv MallocMessageCallback(long functionPointer)

Method Detail

createback to summary
public static MallocMessageCallback create(long functionPointer)

Creates a MallocMessageCallback instance from the specified function pointer.

Returns:MallocMessageCallback

the new MallocMessageCallback

createback to summary
public static MallocMessageCallback create(MallocMessageCallbackI instance)

Creates a MallocMessageCallback instance that delegates to the specified MallocMessageCallbackI instance.

createSafeback to summary
public static MallocMessageCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
getMessageback to summary
public static String getMessage(long s)

Converts the specified MallocMessageCallback arguments to a String.

This method may only be used inside a MallocMessageCallback invocation.

Parameters
s:long

the MallocMessageCallback s argument

Returns:String

the message as a String

org.lwjgl.system.jemalloc back to summary

private final Class MallocMessageCallback.Container

extends MallocMessageCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final MallocMessageCallbackI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the opaque pointer passed to malloc_usable_size
cbopaque
,
long
the message
s
)

Implements org.lwjgl.system.jemalloc.MallocMessageCallbackI.invoke.

Will be called by the malloc_usable_size method.
Inherited from org.lwjgl.system.jemalloc.MallocMessageCallback:
createcreatecreateSafegetMessage

Field Detail

delegateback to summary
private final MallocMessageCallbackI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(long cbopaque, long s)

Implements org.lwjgl.system.jemalloc.MallocMessageCallbackI.invoke.

Doc from org.lwjgl.system.jemalloc.MallocMessageCallbackI.invoke.

Will be called by the malloc_usable_size method.

Parameters
cbopaque:long

the opaque pointer passed to malloc_usable_size

s:long

the message

Annotations
@Override