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.
void (*invoke) (
MDB_val *item,
void *oldptr,
void *newptr,
void *relctx
)
| Modifier and Type | Method and Description |
|---|---|
| public default void | callback(long
a pointer to the memory used for the function's return value.
ret, long If the function is declared as returning Otherwise, the callback must fill the object to which this points, following the same special promotion behavior as
a vector of pointers to memory holding the arguments to the function args)Implements org. |
| public default FFICIF | getCallInterface()
Implements org. |
| 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 relctx)set_relctxA callback function used to relocate a position-dependent data item in a fixed-address database. |
| CIF | back to summary |
|---|---|
| public static final FFICIF CIF | |
| callback | back to summary |
|---|---|
| public default void callback(long ret, long args) Implements org. Doc from org. The Java method that will be called from native code when the native callback function is invoked.
| |
| getCallInterface | back to summary |
|---|---|
| public default FFICIF getCallInterface() Implements org. Doc from org. Returns the libffi Call Interface for this callback function. [INTERNAL API] | |
| invoke | back to summary |
|---|---|
| public void invoke(long item, long oldptr, long newptr, long relctx) A callback function used to relocate a position-dependent data item in a fixed-address database.
| |