Class OmfIteratedData

    • Constructor Detail

      • OmfIteratedData

        public OmfIteratedData​(BinaryReader reader)
                        throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • 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 java.io.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:
        java.io.IOException - for problems accessing data through the reader
      • compareTo

        public int compareTo​(OmfData o)
        Specified by:
        compareTo in interface java.lang.Comparable<OmfData>