Interface MDBRelFuncI

  • All Superinterfaces:
    CallbackI, CallbackI.V, Pointer
    All Known Implementing Classes:
    MDBRelFunc
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface MDBRelFuncI
    extends CallbackI.V
    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 (*) (
         MDB_val *item,
         void *oldptr,
         void *newptr,
         void *relctx
     )
    • Method Detail

      • getSignature

        default java.lang.String getSignature()
        Description copied from interface: CallbackI
        Returns the dyncall signature for this callback function. [INTERNAL API]
        Specified by:
        getSignature in interface CallbackI
        Returns:
        the dyncall signature
      • callback

        default void callback​(long args)
        Description copied from interface: CallbackI.V
        Will be called by native code.
        Specified by:
        callback in interface CallbackI.V
        Parameters:
        args - pointer to a DCArgs iterator
      • invoke

        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.
        Parameters:
        item - the item that is to be relocated
        oldptr - the previous address
        newptr - the new address to relocate to
        relctx - an application-provided context, set by set_relctx