Replaces function at target with implementation at replacement.
May be implemented using e.g. NativeCallback or CModule.
Target is modified to vector directly to your replacement, which means
there is less overhead compared to Interceptor.replace(). This also
means that you need to use the returned pointer if you want to call the
original implementation.
The target may be specified either as a bare address, or as an object
carrying the address alongside instrumentation options such as which
scratch register to use.
Replaces function at
targetwith implementation atreplacement.May be implemented using e.g.
NativeCallbackorCModule.Target is modified to vector directly to your replacement, which means there is less overhead compared to
Interceptor.replace(). This also means that you need to use the returned pointer if you want to call the original implementation.The
targetmay be specified either as a bare address, or as an object carrying the address alongside instrumentation options such as which scratch register to use.