Interface OmfData

All Superinterfaces:
Comparable<OmfData>
All Known Implementing Classes:
OmfEnumeratedData, OmfIteratedData

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

    • 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 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:
      IOException - for problems accessing data through the reader
    • isAllZeroes

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