Class OMFSegDesc


  • public class OMFSegDesc
    extends java.lang.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;
     
    • Constructor Summary

      Constructors 
      Constructor Description
      OMFSegDesc()
      DO NOT USE THIS CONSTRUCTOR, USE create*(GenericFactory ...) FACTORY METHODS INSTEAD.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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
    • Constructor Detail

      • OMFSegDesc

        public OMFSegDesc()
        DO NOT USE THIS CONSTRUCTOR, USE create*(GenericFactory ...) FACTORY METHODS INSTEAD.
    • Method Detail

      • 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