Class OmfIteratedData

java.lang.Object
ghidra.app.util.bin.format.omf.OmfRecord
ghidra.app.util.bin.format.omf.OmfIteratedData
All Implemented Interfaces:
OmfData, Comparable<OmfData>

public class OmfIteratedData extends OmfRecord implements OmfData
  • Field Details

  • Constructor Details

  • Method Details

    • getSegmentIndex

      public int getSegmentIndex()
    • getDataOffset

      public long getDataOffset()
      Specified by:
      getDataOffset in interface OmfData
      Returns:
      the starting offset, within the loaded image, of this data
    • isAllZeroes

      public boolean isAllZeroes()
      Specified by:
      isAllZeroes in interface OmfData
      Returns:
      true if this is a block entirely of zeroes
    • getLength

      public int getLength()
      Specified by:
      getLength in interface OmfData
      Returns:
      the length of this data in bytes
    • getByteArray

      public byte[] getByteArray(BinaryReader reader) throws IOException
      Description copied from interface: OmfData
      Create a byte array holding the data represented by this object. The length of the byte array should exactly match the value returned by getLength()
      Specified by:
      getByteArray in interface OmfData
      Parameters:
      reader - is for pulling bytes directly from the binary image
      Returns:
      allocated and filled byte array
      Throws:
      IOException - for problems accessing data through the reader
    • compareTo

      public int compareTo(OmfData o)
      Specified by:
      compareTo in interface Comparable<OmfData>