| M E M _ A D D R F R O M B A S E ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English PORTA - MEM_#?
----------------------------------------------------------------------------
NAME
mem_addrfrombase() - Allows to resolve an absolute address
of a function (LBS).
SYNOPSIS
funcaddr = mem_addrfrombase(libbase, offset);
APTR mem_addrfrombase(void *, LONG);
FUNCTION
This func is almost identical to 'mem_addrfromlvo()' macro
except that it is also able to resolve pointers from local
bases (LBS).
INPUTS
libbase - Base of a shared library. If you need to resolve
from local base then pass through QBASEPOINTER()
macro. For example: QBASEPOINTER(SysBase), ...
offset - Negative offset of particular func. as seen in
LVO's or 'RKM' offsets.
RETURNS
An absolute address to a function.
BASES
None.
NOTES
See the notes of 'mem_addrfromlvo()' for more details on
proper usage.
Resolving from local bases with 'mem_addrfromlvo()' will
result in particular call entry points and not the final
routine addresses!
SEE ALSO
mem_addrfromlvo()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |