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

public abstract Class MDBRelFunc

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

A callback function used to relocate a position-dependent data item in a fixed-address database.

The newptr gives the item's desired address in the memory map, and oldptr gives its previous address. The item's actual data resides at the address in item. This callback is expected to walk through the fields of the record in item and modify any values based at the oldptr address to be relative to the newptr address.

Type


void (*invoke) (
    MDB_val *item,
    void *oldptr,
    void *newptr,
    void *relctx
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static MDBRelFunc

Returns:

the new MDBRelFunc
create
(long functionPointer)

Creates a MDBRelFunc instance from the specified function pointer.

public static MDBRelFunc
create(MDBRelFuncI instance)

Creates a MDBRelFunc instance that delegates to the specified MDBRelFuncI instance.

public static MDBRelFunc
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

MDBRelFuncback to summary
protected MDBRelFunc()
MDBRelFuncback to summary
pack-priv MDBRelFunc(long functionPointer)

Method Detail

createback to summary
public static MDBRelFunc create(long functionPointer)

Creates a MDBRelFunc instance from the specified function pointer.

Returns:MDBRelFunc

the new MDBRelFunc

createback to summary
public static MDBRelFunc create(MDBRelFuncI instance)

Creates a MDBRelFunc instance that delegates to the specified MDBRelFuncI instance.

createSafeback to summary
public static MDBRelFunc createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

private final Class MDBRelFunc.Container

extends MDBRelFunc
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final MDBRelFuncI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the item that is to be relocated
item
,
long
the previous address
oldptr
,
long
the new address to relocate to
newptr
,
long
an application-provided context, set by set_relctx
relctx
)

Implements org.lwjgl.util.lmdb.MDBRelFuncI.invoke.

A callback function used to relocate a position-dependent data item in a fixed-address database.
Inherited from org.lwjgl.util.lmdb.MDBRelFunc:
createcreatecreateSafe

Field Detail

delegateback to summary
private final MDBRelFuncI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(long item, long oldptr, long newptr, long relctx)

Implements org.lwjgl.util.lmdb.MDBRelFuncI.invoke.

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

A callback function used to relocate a position-dependent data item in a fixed-address database.

Parameters
item:long

the item that is to be relocated

oldptr:long

the previous address

newptr:long

the new address to relocate to

relctx:long

an application-provided context, set by set_relctx

Annotations
@Override