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 SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets a string representation of the types of memory differences for this MemoryBlockDiff.booleanReturns true if the memory blocks Artificial flags differ.booleanReturns true if the comments on the memory blocks differ.booleanReturns true if the end addresses of the memory blocks differ.booleanReturns true if the memory blocks Execute flags differ.booleanReturns true if the initialization of the memory blocks isn't the same.booleanReturns true if the memory block names differ.booleanReturns true if the memory blocks Read flags differ.booleanReturns true if the sizes of the memory blocks differ.booleanReturns true if the source for the memory blocks differ.booleanReturns true if the start addresses of the memory blocks differ.booleanReturns true if the type for the memory blocks differ.booleanReturns true if the memory blocks Volatile flags differ.booleanReturns true if the memory blocks Write flags differ.
- 
Field Details- 
NAMEpublic static final int NAME- See Also:
 
- 
START_ADDRESSpublic static final int START_ADDRESS- See Also:
 
- 
END_ADDRESSpublic static final int END_ADDRESS- See Also:
 
- 
SIZEpublic static final int SIZE- See Also:
 
- 
READpublic static final int READ- See Also:
 
- 
WRITEpublic static final int WRITE- See Also:
 
- 
EXECUTEpublic static final int EXECUTE- See Also:
 
- 
VOLATILEpublic static final int VOLATILE- See Also:
 
- 
ARTIFICIALpublic static final int ARTIFICIAL- See Also:
 
- 
TYPEpublic static final int TYPE- See Also:
 
- 
INITpublic static final int INIT- See Also:
 
- 
SOURCEpublic static final int SOURCE- See Also:
 
- 
COMMENTpublic static final int COMMENT- See Also:
 
- 
ALLpublic static final int ALL- See Also:
 
 
- 
- 
Constructor Details- 
MemoryBlockDiffConstructor.MemoryBlockDiffdetermines the types of differences between two memory blocks.- Parameters:
- block1- the first program's memory block
- block2- the second program's memory block
 
 
- 
- 
Method Details- 
isNameDifferentpublic boolean isNameDifferent()Returns true if the memory block names differ.
- 
isStartAddressDifferentpublic boolean isStartAddressDifferent()Returns true if the start addresses of the memory blocks differ.
- 
isEndAddressDifferentpublic boolean isEndAddressDifferent()Returns true if the end addresses of the memory blocks differ.
- 
isSizeDifferentpublic boolean isSizeDifferent()Returns true if the sizes of the memory blocks differ.
- 
isReadDifferentpublic boolean isReadDifferent()Returns true if the memory blocks Read flags differ.
- 
isWriteDifferentpublic boolean isWriteDifferent()Returns true if the memory blocks Write flags differ.
- 
isExecDifferentpublic boolean isExecDifferent()Returns true if the memory blocks Execute flags differ.
- 
isVolatileDifferentpublic boolean isVolatileDifferent()Returns true if the memory blocks Volatile flags differ.
- 
isArtificialDifferentpublic boolean isArtificialDifferent()Returns true if the memory blocks Artificial flags differ.
- 
isTypeDifferentpublic boolean isTypeDifferent()Returns true if the type for the memory blocks differ.
- 
isInitDifferentpublic boolean isInitDifferent()Returns true if the initialization of the memory blocks isn't the same.
- 
isSourceDifferentpublic boolean isSourceDifferent()Returns true if the source for the memory blocks differ.
- 
isCommentDifferentpublic boolean isCommentDifferent()Returns true if the comments on the memory blocks differ.
- 
getDifferencesAsStringGets a string representation of the types of memory differences for this MemoryBlockDiff.
 
-