Package ghidra.app.util.bin.format.pe.debug

# 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 Summary

  Modifier and Type
  Method
  Description
  `short`
  `getAlignmentPad()`
  Returns the pad to maintain alignment.
  `int`
  `getNumberOfBytes()`
  Returns the number of bytes in segment.
  `int`
  `getOffset()`
  Returns the offset of code in segment.
  `short`
  `getSegmentIndex()`
  Returns the segment index.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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