Package ghidra.program.util
Class MemoryBlockDiff
- java.lang.Object
-
- ghidra.program.util.MemoryBlockDiff
-
- Direct Known Subclasses:
MemoryRangeDiff
public class MemoryBlockDiff extends java.lang.Object
MemoryBlockDiff
determines the types of differences between two memory blocks.
-
-
Constructor Summary
Constructors Constructor Description MemoryBlockDiff(MemoryBlock block1, MemoryBlock block2)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDifferencesAsString()
Gets a string representation of the types of memory differences for this MemoryBlockDiff.boolean
isCommentDifferent()
Returns true if the comments on the memory blocks differ.boolean
isEndAddressDifferent()
Returns true if the end addresses of the memory blocks differ.boolean
isExecDifferent()
Returns true if the memory blocks Execute flags differ.boolean
isInitDifferent()
Returns true if the initialization of the memory blocks isn't the same.boolean
isNameDifferent()
Returns true if the memory block names differ.boolean
isReadDifferent()
Returns true if the memory blocks Read flags differ.boolean
isSizeDifferent()
Returns true if the sizes of the memory blocks differ.boolean
isSourceDifferent()
Returns true if the source for the memory blocks differ.boolean
isStartAddressDifferent()
Returns true if the start addresses of the memory blocks differ.boolean
isTypeDifferent()
Returns true if the type for the memory blocks differ.boolean
isVolatileDifferent()
Returns true if the memory blocks Volatile flags differ.boolean
isWriteDifferent()
Returns true if the memory blocks Write flags differ.
-
-
-
Field Detail
-
NAME
public static final int NAME
- See Also:
- Constant Field Values
-
START_ADDRESS
public static final int START_ADDRESS
- See Also:
- Constant Field Values
-
END_ADDRESS
public static final int END_ADDRESS
- See Also:
- Constant Field Values
-
SIZE
public static final int SIZE
- See Also:
- Constant Field Values
-
READ
public static final int READ
- See Also:
- Constant Field Values
-
WRITE
public static final int WRITE
- See Also:
- Constant Field Values
-
EXECUTE
public static final int EXECUTE
- See Also:
- Constant Field Values
-
VOLATILE
public static final int VOLATILE
- See Also:
- Constant Field Values
-
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
-
INIT
public static final int INIT
- See Also:
- Constant Field Values
-
SOURCE
public static final int SOURCE
- See Also:
- Constant Field Values
-
COMMENT
public static final int COMMENT
- See Also:
- Constant Field Values
-
ALL
public static final int ALL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MemoryBlockDiff
public MemoryBlockDiff(MemoryBlock block1, MemoryBlock block2)
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 Detail
-
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.
-
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
public java.lang.String getDifferencesAsString()
Gets a string representation of the types of memory differences for this MemoryBlockDiff.
-
-