Class MemorySection


  • public class MemorySection
    extends java.lang.Object
    • Field Detail

      • isInitialized

        protected final boolean isInitialized
      • fileOffset

        protected final long fileOffset
      • length

        protected final long length
      • isFragmentationOK

        protected final boolean isFragmentationOK
      • 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 source
        fileOffset - 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 name
        isReadable - true if "section" has read privilege
        isWritable - true if "section" has write privilege
        isExecutable - true if "section" has execute privilege
        comment - 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

      • isInitialized

        public boolean isInitialized()
      • getFileOffset

        public long getFileOffset()
      • getNumberOfBytes

        public long getNumberOfBytes()
      • getMinAddress

        public Address getMinAddress()
      • getMaxAddress

        public Address getMaxAddress()
      • 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 class java.lang.Object