Package ghidra.app.util.bin.format.omf
Interface OmfData
- All Superinterfaces:
Comparable<OmfData>
- All Known Implementing Classes:
OmfEnumeratedData
,OmfIteratedData
Object representing data loaded directly into the final image.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getByteArray
(BinaryReader reader) Create a byte array holding the data represented by this object.long
int
boolean
Methods inherited from interface java.lang.Comparable
compareTo
-
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
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
-