mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-1996 - code refactor to make op new and delete discovery more generic.
This commit is contained in:
parent
864321a060
commit
d8396e7592
5 changed files with 458 additions and 438 deletions
|
@ -847,28 +847,6 @@ public class ExtendedFlatProgramAPI extends FlatProgramAPI {
|
|||
return pdt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to retrieve the minimum address on the given list
|
||||
* @param list the list of addresses
|
||||
* @return the minimum address on the given list
|
||||
*/
|
||||
public Address getMinimumAddressOnList(List<Address> list) {
|
||||
|
||||
Collections.sort(list);
|
||||
return list.get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to retrieve the maximum address on the given list
|
||||
* @param list the list of addresses
|
||||
* @return the maximum address on the given list
|
||||
*/
|
||||
public Address getMaximumAddressOnList(List<Address> list) {
|
||||
|
||||
Collections.sort(list, Collections.reverseOrder());
|
||||
return list.get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to retrieve the referenced Functions from the given referenceToClassMap
|
||||
* @param referenceToClassMap map of addresses that contain a reference to either a vftable or
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue