Class Omf51Content
java.lang.Object
ghidra.app.util.bin.format.omf.OmfRecord
ghidra.app.util.bin.format.omf.omf51.Omf51Content
- All Implemented Interfaces:
StructConverter
-
Field Summary
Fields inherited from class ghidra.app.util.bin.format.omf.OmfRecord
checkSum, data, dataEnd, dataReader, recordLength, recordOffset, recordType
-
Constructor Summary
ConstructorsConstructorDescriptionOmf51Content
(BinaryReader reader, boolean largeSegmentId) Creates a newOmf51Content
record -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the start of the data in the reader.int
Returns the data size in bytes.int
Returns the offset.int
getSegId()
Returns the segment ID.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.OmfRecord
calcCheckSum, getData, getRecordChecksum, getRecordLength, getRecordOffset, getRecordType, hasBigFields, toString, validCheckSum
-
Constructor Details
-
Omf51Content
Creates a newOmf51Content
record- Parameters:
reader
- ABinaryReader
positioned at the start of the recordlargeSegmentId
- True if the segment ID is 2 bytes; false if 1 byte- Throws:
IOException
- if an IO-related error occurred
-
-
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
-
getSegId
public int getSegId()Returns the segment ID.- Returns:
- the segment ID
-
getOffset
public int getOffset()Returns the offset.- Returns:
- the offset
-
getDataSize
public int getDataSize()Returns the data size in bytes.- Returns:
- the data size in bytes
-
getDataIndex
public long getDataIndex()Returns the start of the data in the reader.- Returns:
- the start of the data in 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:
-