public class

SegmentInformation

extends Object
implements ISegmentInformation
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.codeobject.SegmentInformation

Class Overview

Standard implementation of the ISegmentInformation interface for segments and sections.

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.units.codeobject.ISegmentInformation
Public Constructors
SegmentInformation(String name, long offsetInFile, long sizeInFile, long offsetInMemory, long sizeInMemory, int flags)
SegmentInformation(SegmentInformation segment)
Public Methods
long getAlignment()
Get the memory alignment within the segment.
int getFlags()
Get the flags for this segment or section.
String getName()
Retrieve the name of the segment or section.
long getOffsetInFile()
Get the file offset of the segment or section.
long getOffsetInMemory()
Get the in-memory, base-relative address of the beginning of this segment or section.
long getSizeInFile()
Get the file size of this segment or section.
long getSizeInMemory()
Get the in-memory size of this segment or section.
void setAlignment(long alignment)
void setFlags(int flags)
void setName(String name)
void setOffsetInFile(long offsetInFile)
void setOffsetInMemory(long offsetInMemory)
void setSizeInFile(long sizeInFile)
void setSizeInMemory(long sizeInMemory)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.units.codeobject.ISegmentInformation

Public Constructors

public SegmentInformation (String name, long offsetInFile, long sizeInFile, long offsetInMemory, long sizeInMemory, int flags)

public SegmentInformation (SegmentInformation segment)

Public Methods

public long getAlignment ()

Get the memory alignment within the segment.

Returns
  • the alignment in bytes

public int getFlags ()

Get the flags for this segment or section.

Returns
  • a combination of FLAG_* attributes

public String getName ()

Retrieve the name of the segment or section.

Returns
  • the name, null if unsupported

public long getOffsetInFile ()

Get the file offset of the segment or section.

Returns
  • the file offset in bytes

public 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 long getSizeInFile ()

Get the file size of this segment or section.

Returns
  • the size in bytes

public long getSizeInMemory ()

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

Returns
  • the size in bytes

public void setAlignment (long alignment)

public void setFlags (int flags)

public void setName (String name)

public void setOffsetInFile (long offsetInFile)

public void setOffsetInMemory (long offsetInMemory)

public void setSizeInFile (long sizeInFile)

public void setSizeInMemory (long sizeInMemory)

public String toString ()