Class OMFSegDesc
java.lang.Object
ghidra.app.util.bin.format.pe.debug.OMFSegDesc
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 TypeMethodDescriptionshort
Returns the pad to maintain alignment.int
Returns the number of bytes in segment.int
Returns the offset of code in segment.short
Returns the segment index.
-
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
-