public interface

ISegmentInformation

com.pnfsoftware.jeb.core.units.codeobject.ISegmentInformation
Known Indirect Subclasses

Class Overview

Definition of object code segments and sections.

Summary

Constants
int FLAG_EXECUTE
int FLAG_READ
int FLAG_WRITE
Public Methods
abstract int getFlags()
Get the flags for this segment or section.
abstract String getName()
Retrieve the name of the segment or section.
abstract long getOffsetInFile()
Get the file offset of the segment or section.
abstract long getOffsetInMemory()
Get the in-memory, base-relative address of the beginning of this segment or section.
abstract long getSizeInFile()
Get the file size of this segment or section.
abstract long getSizeInMemory()
Get the in-memory size of this segment or section.

Constants

public static final int FLAG_EXECUTE

Constant Value: 4 (0x00000004)

public static final int FLAG_READ

Constant Value: 2 (0x00000002)

public static final int FLAG_WRITE

Constant Value: 1 (0x00000001)

Public Methods

public abstract int getFlags ()

Get the flags for this segment or section.

Returns
  • a combination of FLAG_* attributes

public abstract String getName ()

Retrieve the name of the segment or section.

Returns
  • the name, null if unsupported

public abstract long getOffsetInFile ()

Get the file offset of the segment or section.

Returns
  • the file offset in bytes

public abstract long getOffsetInMemory ()

Get the in-memory, base-relative address of the beginning of this segment or section. If a base address is not known or cannot be determined, the offset is 0-relative, and therefore, considered absolute.

Returns
  • the base-relative memory address in bytes

public abstract long getSizeInFile ()

Get the file size of this segment or section.

Returns
  • the size in bytes

public abstract long getSizeInMemory ()

Get the in-memory size of this segment or section.

Returns
  • the size in bytes