Package ghidra.program.util
Class MemoryBlockDiff
java.lang.Object
ghidra.program.util.MemoryBlockDiff
- Direct Known Subclasses:
MemoryRangeDiff
MemoryBlockDiff
determines the types of differences between two memory blocks.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets a string representation of the types of memory differences for this MemoryBlockDiff.boolean
Returns true if the memory blocks Artificial flags differ.boolean
Returns true if the comments on the memory blocks differ.boolean
Returns true if the end addresses of the memory blocks differ.boolean
Returns true if the memory blocks Execute flags differ.boolean
Returns true if the initialization of the memory blocks isn't the same.boolean
Returns true if the memory block names differ.boolean
Returns true if the memory blocks Read flags differ.boolean
Returns true if the sizes of the memory blocks differ.boolean
Returns true if the source for the memory blocks differ.boolean
Returns true if the start addresses of the memory blocks differ.boolean
Returns true if the type for the memory blocks differ.boolean
Returns true if the memory blocks Volatile flags differ.boolean
Returns true if the memory blocks Write flags differ.
-
Field Details
-
NAME
public static final int NAME- See Also:
-
START_ADDRESS
public static final int START_ADDRESS- See Also:
-
END_ADDRESS
public static final int END_ADDRESS- See Also:
-
SIZE
public static final int SIZE- See Also:
-
READ
public static final int READ- See Also:
-
WRITE
public static final int WRITE- See Also:
-
EXECUTE
public static final int EXECUTE- See Also:
-
VOLATILE
public static final int VOLATILE- See Also:
-
ARTIFICIAL
public static final int ARTIFICIAL- See Also:
-
TYPE
public static final int TYPE- See Also:
-
INIT
public static final int INIT- See Also:
-
SOURCE
public static final int SOURCE- See Also:
-
COMMENT
public static final int COMMENT- See Also:
-
ALL
public static final int ALL- See Also:
-
-
Constructor Details
-
MemoryBlockDiff
Constructor.MemoryBlockDiff
determines the types of differences between two memory blocks.- Parameters:
block1
- the first program's memory blockblock2
- the second program's memory block
-
-
Method Details
-
isNameDifferent
public boolean isNameDifferent()Returns true if the memory block names differ. -
isStartAddressDifferent
public boolean isStartAddressDifferent()Returns true if the start addresses of the memory blocks differ. -
isEndAddressDifferent
public boolean isEndAddressDifferent()Returns true if the end addresses of the memory blocks differ. -
isSizeDifferent
public boolean isSizeDifferent()Returns true if the sizes of the memory blocks differ. -
isReadDifferent
public boolean isReadDifferent()Returns true if the memory blocks Read flags differ. -
isWriteDifferent
public boolean isWriteDifferent()Returns true if the memory blocks Write flags differ. -
isExecDifferent
public boolean isExecDifferent()Returns true if the memory blocks Execute flags differ. -
isVolatileDifferent
public boolean isVolatileDifferent()Returns true if the memory blocks Volatile flags differ. -
isArtificialDifferent
public boolean isArtificialDifferent()Returns true if the memory blocks Artificial flags differ. -
isTypeDifferent
public boolean isTypeDifferent()Returns true if the type for the memory blocks differ. -
isInitDifferent
public boolean isInitDifferent()Returns true if the initialization of the memory blocks isn't the same. -
isSourceDifferent
public boolean isSourceDifferent()Returns true if the source for the memory blocks differ. -
isCommentDifferent
public boolean isCommentDifferent()Returns true if the comments on the memory blocks differ. -
getDifferencesAsString
Gets a string representation of the types of memory differences for this MemoryBlockDiff.
-