Package ghidra.util.search.memory
Class SearchInfo
java.lang.Object
ghidra.util.search.memory.SearchInfo
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
protected final boolean
-
Constructor Summary
ConstructorDescriptionSearchInfo
(ghidra.app.plugin.core.searchmem.SearchData searchData, int searchLimit, boolean searchSelection, boolean forwardSearch, int alignment, boolean includeNonLoadedBlocks, CodeUnitSearchInfo codeUnitSearchInfo, TaskListener listener) SearchInfo
(ghidra.app.plugin.core.searchmem.SearchData searchData, int matchLimit, boolean searchSelection, boolean forwardSearch, int alignment, boolean includeNonLoadedBlocks, TaskListener listener) -
Method Summary
Modifier and TypeMethodDescriptioncreateSearchAlgorithm
(Program p, Address start, ProgramSelection selection) int
protected AddressSetView
getSearchableAddressSet
(Program program, Address startAddress, ProgramSelection selection) Generate an address set which only includes initialized memoryghidra.app.plugin.core.searchmem.SearchData
int
boolean
boolean
void
setSearchLimit
(int searchLimit)
-
Field Details
-
searchSelection
protected final boolean searchSelection -
includeNonLoadedBlocks
protected final boolean includeNonLoadedBlocks
-
-
Constructor Details
-
SearchInfo
public SearchInfo(ghidra.app.plugin.core.searchmem.SearchData searchData, int matchLimit, boolean searchSelection, boolean forwardSearch, int alignment, boolean includeNonLoadedBlocks, TaskListener listener) -
SearchInfo
public SearchInfo(ghidra.app.plugin.core.searchmem.SearchData searchData, int searchLimit, boolean searchSelection, boolean forwardSearch, int alignment, boolean includeNonLoadedBlocks, CodeUnitSearchInfo codeUnitSearchInfo, TaskListener listener)
-
-
Method Details
-
getSearchableAddressSet
protected AddressSetView getSearchableAddressSet(Program program, Address startAddress, ProgramSelection selection) Generate an address set which only includes initialized memory- Parameters:
program
- the programstartAddress
- starting point for search or null to start from the top of memoryselection
- addresses to be searched or null to search all memory- Returns:
- searchable address set
-
createSearchAlgorithm
public MemorySearchAlgorithm createSearchAlgorithm(Program p, Address start, ProgramSelection selection) -
isSearchForward
public boolean isSearchForward() -
isSearchAll
public boolean isSearchAll() -
getAlignment
public int getAlignment() -
getListener
-
getSearchData
public ghidra.app.plugin.core.searchmem.SearchData getSearchData() -
getCodeUnitSearchInfo
-
getSearchLimit
public int getSearchLimit() -
setSearchLimit
public void setSearchLimit(int searchLimit)
-