Package ghidra.app.util.opinion
Class MemorySection
- java.lang.Object
-
- ghidra.app.util.opinion.MemorySection
-
public class MemorySection extends java.lang.Object
-
-
Field Summary
Fields Change Modifier and Type Field Description NEW protected java.lang.StringcommentNEW protected longfileOffsetNEW protected booleanisExecuteNEW protected booleanisFragmentationOKNEW protected booleanisInitializedNEW protected booleanisReadableNEW protected booleanisWritableNEW protected MemoryLoadablekeyNEW protected longlengthNEW protected AddressRangerangeNEW protected java.lang.StringsectionName
-
Constructor Summary
Constructors Change Modifier Constructor Description protectedMemorySection(MemoryLoadable key, boolean isInitialized, long fileOffset, long length, AddressRange range, java.lang.String sectionName, boolean isReadable, boolean isWritable, boolean isExecute, java.lang.String comment, boolean isFragmentationOK)Create memory "section" definition.
-
Method Summary
All Methods Instance Methods Concrete Methods Change Modifier and Type Method Description AddressSpacegetAddressSpace()java.lang.StringgetComment()longgetFileOffset()MemoryLoadablegetKey()AddressgetMaxAddress()AddressgetMinAddress()longgetNumberOfBytes()AddressRangegetRange()java.lang.StringgetSectionName()booleanisExecute()booleanisInitialized()booleanisLoaded()booleanisReadable()booleanisWritable()java.lang.StringtoString()
-
-
-
Field Detail
-
key NEW
protected final MemoryLoadable key
-
range NEW
protected final AddressRange range
Constructor Detail
-
MemorySection
protected MemorySection(MemoryLoadable key, boolean isInitialized, long fileOffset, long length, AddressRange range, java.lang.String sectionName, boolean isReadable, boolean isWritable, boolean isExecute, java.lang.String comment, boolean isFragmentationOK)
Create memory "section" definition. Those sections defined within the OTHER address space will be treated as non-loaded data.- Parameters:
key- the loadable section key which corresponds to this memory "section"isInitialized- true if "section" will be initialized from a data sourcefileOffset- data source offset (required if isInitialized is true)length- number of bytes within this "section"range- physical address range of "section" (i.e., not overlay addresses)sectionName- section nameisReadable- true if "section" has read privilegeisWritable- true if "section" has write privilegeisExecutable- true if "section" has execute privilegecomment- section comment (used as basis for block comment)isFragmentationOK- if true this memory section may be fragmented due to conflict/overlap with other memory sections of higher precedence.
-
-
Method Detail
-
getKey
public MemoryLoadable getKey()
-
isInitialized
public boolean isInitialized()
-
getFileOffset
public long getFileOffset()
-
getNumberOfBytes
public long getNumberOfBytes()
-
getRange
public AddressRange getRange()
-
getMinAddress
public Address getMinAddress()
-
getMaxAddress
public Address getMaxAddress()
-
getAddressSpace
public AddressSpace getAddressSpace()
-
getSectionName
public java.lang.String getSectionName()
-
isLoaded
public boolean isLoaded()
-
isReadable
public boolean isReadable()
-
isWritable
public boolean isWritable()
-
isExecute
public boolean isExecute()
-
getComment
public java.lang.String getComment()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-