Class OMFSegDesc

java.lang.Object
ghidra.app.util.bin.format.pe.debug.OMFSegDesc

public class OMFSegDesc extends Object
A class to represent the Object Module Format (OMF) Segment Descriptor data structure. Information describing each segment in a module.
 typedef struct OMFSegDesc {
     unsigned short  Seg;            // segment index
     unsigned short  pad;            // pad to maintain alignment
     unsigned long   Off;            // offset of code in segment
     unsigned long   cbSeg;          // number of bytes in segment
 } OMFSegDesc;
 
  • Method Details

    • getSegmentIndex

      public short getSegmentIndex()
      Returns the segment index.
      Returns:
      the segment index
    • getAlignmentPad

      public short getAlignmentPad()
      Returns the pad to maintain alignment.
      Returns:
      the pad to maintain alignment
    • getOffset

      public int getOffset()
      Returns the offset of code in segment.
      Returns:
      the offset of code in segment
    • getNumberOfBytes

      public int getNumberOfBytes()
      Returns the number of bytes in segment.
      Returns:
      the number of bytes in segment