Package ghidra.app.util.bin.format.omf
Class OmfIteratedData
- java.lang.Object
-
- ghidra.app.util.bin.format.omf.OmfRecord
-
- ghidra.app.util.bin.format.omf.OmfIteratedData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OmfIteratedData.DataBlock
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_ITERATED_FILL
-
Constructor Summary
Constructors Constructor Description OmfIteratedData(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
-
-
-
-
Field Detail
-
MAX_ITERATED_FILL
public static final int MAX_ITERATED_FILL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OmfIteratedData
public OmfIteratedData(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
-
isAllZeroes
public boolean isAllZeroes()
- Specified by:
isAllZeroes
in interfaceOmfData
- Returns:
- true if this is a block entirely of zeroes
-
getLength
public int getLength()
-
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
-
-