Optional
filter: ModuleMapFilterFilter function to decide which modules are kept in the map.
Looks up a module by address. Returns null if not found.
Address that might belong to a module in the map.
Just like find()
, but only returns the name
field, which means less overhead when you don’t need the
other details. Returns null if not found.
Address that might belong to a module in the map.
Just like find()
, but only returns the path
field, which means less overhead when you don’t need the
other details. Returns null if not found.
Address that might belong to a module in the map.
Looks up a module by address. Throws an exception if not found.
Address that might belong to a module in the map.
Just like get()
, but only returns the name
field, which means less overhead when you don’t need the
other details. Throws an exception if not found.
Address that might belong to a module in the map.
Just like get()
, but only returns the path
field, which means less overhead when you don’t need the
other details. Throws an exception if not found.
Address that might belong to a module in the map.
Determines if address
belongs to any of the contained modules.
Address that might belong to a module in the map.
Generated using TypeDoc
Creates a new module map optimized for determining which module a given memory address belongs to, if any. Takes a snapshot of the currently loaded modules when created, which may be refreshed by calling
update()
.The
filter
argument is optional and allows you to pass a function used for filtering the list of modules. This is useful if you e.g. only care about modules owned by the application itself, and allows you to quickly check if an address belongs to one of its modules. The filter function is given the module's details and must return true for each module that should be kept in the map. It is called for each loaded module every time the map is updated.