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 Modifier and Type Field Description protected java.lang.Stringcommentprotected longfileOffsetprotected booleanisExecuteprotected booleanisFragmentationOKprotected booleanisInitializedprotected booleanisReadableprotected booleanisWritableprotected MemoryLoadablekeyprotected longlengthprotected AddressRangerangeprotected java.lang.StringsectionName
-
Constructor Summary
Constructors 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 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
protected final MemoryLoadable key
-
isInitialized
protected final boolean isInitialized
-
fileOffset
protected final long fileOffset
-
length
protected final long length
-
isFragmentationOK
protected final boolean isFragmentationOK
-
range
protected final AddressRange range
-
sectionName
protected final java.lang.String sectionName
-
isReadable
protected final boolean isReadable
-
isWritable
protected final boolean isWritable
-
isExecute
protected final boolean isExecute
-
comment
protected final java.lang.String comment
-
-
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
-
-