Package ghidra.app.util.bin.format.omf
Class OmfEnumeratedData
java.lang.Object
ghidra.app.util.bin.format.omf.OmfRecord
ghidra.app.util.bin.format.omf.OmfEnumeratedData
- All Implemented Interfaces:
OmfData
,Comparable<OmfData>
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
byte[]
getByteArray
(BinaryReader reader) Create a byte array holding the data represented by this object.long
int
int
boolean
Methods inherited from class ghidra.app.util.bin.format.omf.OmfRecord
calcCheckSum, getRecordLength, getRecordType, hasBigFields, readCheckSumByte, readIndex, readInt1Or2, readInt2Or4, readRecord, readRecordHeader, readString, validCheckSum
-
Constructor Details
-
OmfEnumeratedData
- Throws:
IOException
-
-
Method Details
-
getSegmentIndex
public int getSegmentIndex() -
getDataOffset
public long getDataOffset()- Specified by:
getDataOffset
in interfaceOmfData
- Returns:
- the starting offset, within the loaded image, of this data
-
getLength
public int getLength() -
compareTo
- Specified by:
compareTo
in interfaceComparable<OmfData>
-
getByteArray
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 interfaceOmfData
- 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
public boolean isAllZeroes()- Specified by:
isAllZeroes
in interfaceOmfData
- Returns:
- true if this is a block entirely of zeroes
-