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.String
comment
protected long
fileOffset
protected boolean
isExecute
protected boolean
isFragmentationOK
protected boolean
isInitialized
protected boolean
isReadable
protected boolean
isWritable
protected MemoryLoadable
key
protected long
length
protected AddressRange
range
protected java.lang.String
sectionName
-
Constructor Summary
Constructors Modifier Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressSpace
getAddressSpace()
java.lang.String
getComment()
long
getFileOffset()
MemoryLoadable
getKey()
Address
getMaxAddress()
Address
getMinAddress()
long
getNumberOfBytes()
AddressRange
getRange()
java.lang.String
getSectionName()
boolean
isExecute()
boolean
isInitialized()
boolean
isLoaded()
boolean
isReadable()
boolean
isWritable()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-