Top Description Inners Constructors Methods
org.lwjgl.util.lmdb

public abstract Class MDBMsgFunc

extends Callback
implements MDBMsgFuncI
Class Inheritance
All Implemented Interfaces
org.lwjgl.util.lmdb.MDBMsgFuncI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.util.lmdb.MDBMsgFunc.Container
Imports
javax.annotation.*, org.lwjgl.system.*

A callback function used to print a message from the library.

Type


int (*invoke) (
    char const *msg,
    void *ctx
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static MDBMsgFunc

Returns:

the new MDBMsgFunc
create
(long functionPointer)

Creates a MDBMsgFunc instance from the specified function pointer.

public static MDBMsgFunc
create(MDBMsgFuncI instance)

Creates a MDBMsgFunc instance that delegates to the specified MDBMsgFuncI instance.

public static MDBMsgFunc
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

MDBMsgFuncback to summary
protected MDBMsgFunc()
MDBMsgFuncback to summary
pack-priv MDBMsgFunc(long functionPointer)

Method Detail

createback to summary
public static MDBMsgFunc create(long functionPointer)

Creates a MDBMsgFunc instance from the specified function pointer.

Returns:MDBMsgFunc

the new MDBMsgFunc

createback to summary
public static MDBMsgFunc create(MDBMsgFuncI instance)

Creates a MDBMsgFunc instance that delegates to the specified MDBMsgFuncI instance.

createSafeback to summary
public static MDBMsgFunc createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.util.lmdb back to summary

private final Class MDBMsgFunc.Container

extends MDBMsgFunc
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final MDBMsgFuncI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public int
invoke(long
the string to be printed
msg
,
long
an arbitrary context pointer for the callback
ctx
)

Implements org.lwjgl.util.lmdb.MDBMsgFuncI.invoke.

A callback function used to print a message from the library.
Inherited from org.lwjgl.util.lmdb.MDBMsgFunc:
createcreatecreateSafe

Field Detail

delegateback to summary
private final MDBMsgFuncI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public int invoke(long msg, long ctx)

Implements org.lwjgl.util.lmdb.MDBMsgFuncI.invoke.

Doc from org.lwjgl.util.lmdb.MDBMsgFuncI.invoke.

A callback function used to print a message from the library.

Parameters
msg:long

the string to be printed

ctx:long

an arbitrary context pointer for the callback

Returns:int

< 0 on failure, ≥ 0 on success

Annotations
@Override