Class OmfIteratedData
java.lang.Object
ghidra.app.util.bin.format.omf.OmfRecord
ghidra.app.util.bin.format.omf.omf.OmfData
ghidra.app.util.bin.format.omf.omf.OmfIteratedData
- All Implemented Interfaces:
StructConverter
,Comparable<OmfData>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Contain the definition of one part of a datablock with possible recursion -
Field Summary
FieldsFields inherited from class ghidra.app.util.bin.format.omf.omf.OmfData
dataOffset, segmentIndex
Fields inherited from class ghidra.app.util.bin.format.omf.OmfRecord
checkSum, data, dataEnd, dataReader, recordLength, recordOffset, recordType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getByteArray
(BinaryReader reader) Create a byte array holding the data represented by this object.int
boolean
void
Parses thisOmfRecord
's type-spefic dataReturns a structure datatype representing the contents of the implementor of this interface.Methods inherited from class ghidra.app.util.bin.format.omf.omf.OmfData
compareTo, getDataOffset, getSegmentIndex
Methods inherited from class ghidra.app.util.bin.format.omf.OmfRecord
calcCheckSum, getData, getRecordChecksum, getRecordLength, getRecordOffset, getRecordType, hasBigFields, toString, validCheckSum
-
Field Details
-
MAX_ITERATED_FILL
public static final int MAX_ITERATED_FILL- See Also:
-
-
Constructor Details
-
OmfIteratedData
- Throws:
IOException
-
-
Method Details
-
parseData
Description copied from class:OmfRecord
Parses thisOmfRecord
's type-spefic data- Specified by:
parseData
in classOmfRecord
- Throws:
IOException
- if there was an IO-related errorOmfException
- if there was a problem with the OMF specification
-
isAllZeroes
public boolean isAllZeroes()- Specified by:
isAllZeroes
in classOmfData
- Returns:
- true if this is a block entirely of zeroes
-
getLength
public int getLength() -
getByteArray
Description copied from class: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 classOmfData
- 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
-
toDataType
Description copied from interface:StructConverter
Returns a structure datatype representing the contents of the implementor of this interface.For example, given:
class A { int foo; double bar; }
The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.
- Specified by:
toDataType
in interfaceStructConverter
- Specified by:
toDataType
in classOmfRecord
- Returns:
- returns a structure datatype representing the implementor of this interface
- Throws:
DuplicateNameException
- when a datatype of the same name already existsIOException
- if an IO-related error occurs- See Also:
-