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
-
-
Constructor Summary
Constructors Constructor Description OmfEnumeratedData(BinaryReader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(OmfData o)
byte[]
getByteArray(BinaryReader reader)
Create a byte array holding the data represented by this object.long
getDataOffset()
int
getLength()
int
getSegmentIndex()
boolean
isAllZeroes()
-
Methods inherited from class ghidra.app.util.bin.format.omf.OmfRecord
calcCheckSum, getRecordLength, getRecordType, hasBigFields, readCheckSumByte, readIndex, readInt1Or2, readInt2Or4, readRecord, readRecordHeader, readString, validCheckSum
-
-
-
-
Constructor Detail
-
OmfEnumeratedData
public OmfEnumeratedData(BinaryReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
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
public int compareTo(OmfData o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<OmfData>
-
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 interfaceOmfData
- 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
public boolean isAllZeroes()
- Specified by:
isAllZeroes
in interfaceOmfData
- Returns:
- true if this is a block entirely of zeroes
-
-