Interface OmfData

  • All Superinterfaces:
    java.lang.Comparable<OmfData>
    All Known Implementing Classes:
    OmfEnumeratedData, OmfIteratedData

    public interface OmfData
    extends java.lang.Comparable<OmfData>
    Object representing data loaded directly into the final image.
    • Method Detail

      • getDataOffset

        long getDataOffset()
        Returns:
        the starting offset, within the loaded image, of this data
      • getLength

        int getLength()
        Returns:
        the length of this data in bytes
      • getByteArray

        byte[] getByteArray​(BinaryReader reader)
                     throws java.io.IOException
        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()
        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
      • isAllZeroes

        boolean isAllZeroes()
        Returns:
        true if this is a block entirely of zeroes