Package ghidra.app.util.importer
Interface MemoryConflictHandler
-
public interface MemoryConflictHandler
An interface for handling memory block conflicts that are encountered during an import.
-
-
Field Summary
Fields Modifier and Type Field Description static MemoryConflictHandler
ALWAYS_OVERWRITE
An implementation that always overwrites conflicts.static MemoryConflictHandler
NEVER_OVERWRITE
An implementation that never overwrites conflicts.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
allowOverwrite(Address start, Address end)
This method is invoked when a memory block conflict is detected.
-
-
-
Field Detail
-
ALWAYS_OVERWRITE
static final MemoryConflictHandler ALWAYS_OVERWRITE
An implementation that always overwrites conflicts.
-
NEVER_OVERWRITE
static final MemoryConflictHandler NEVER_OVERWRITE
An implementation that never overwrites conflicts.
-
-
Method Detail
-
allowOverwrite
boolean allowOverwrite(Address start, Address end)
This method is invoked when a memory block conflict is detected. The start and end addresses of the conflict are passed into the method. To overwrite the conflict, return true. Otherwise return false to NOT overwrite the conflict.- Parameters:
start
- the start address of the conflictend
- the end address of the conflict- Returns:
- true to overwrite the conflict
-
-