Class Omf51LibraryHeaderRecord
java.lang.Object
ghidra.app.util.bin.format.omf.OmfRecord
ghidra.app.util.bin.format.omf.omf51.Omf51LibraryHeaderRecord
- All Implemented Interfaces:
StructConverter
-
Field Summary
FieldsFields inherited from class ghidra.app.util.bin.format.omf.OmfRecord
checkSum, data, dataEnd, dataReader, recordLength, recordOffset, recordType -
Constructor Summary
ConstructorsConstructorDescriptionOmf51LibraryHeaderRecord(BinaryReader reader) Creates a newOmf51LibraryHeaderRecordrecord -
Method Summary
Modifier and TypeMethodDescriptionshortReturns the module names block number.shortReturns the module names byte number.intReturns the module names file offset.shortReturns the module count.voidParses 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
-
Field Details
-
BLOCK_SIZE
public static final int BLOCK_SIZE- See Also:
-
-
Constructor Details
-
Omf51LibraryHeaderRecord
Creates a newOmf51LibraryHeaderRecordrecord- Parameters:
reader- ABinaryReaderpositioned at the start of the record- Throws:
IOException- if an IO-related error occurred
-
-
Method Details
-
parseData
Description copied from class:OmfRecordParses thisOmfRecord's type-spefic data- Specified by:
parseDatain classOmfRecord- Throws:
IOException- if there was an IO-related errorOmfException- if there was a problem with the OMF specification
-
toDataType
Description copied from interface:StructConverterReturns 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:
toDataTypein interfaceStructConverter- Specified by:
toDataTypein 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:
-
getModuleCount
public short getModuleCount()Returns the module count.- Returns:
- the module count
-
getModNamesBlockNumber
public short getModNamesBlockNumber()Returns the module names block number.- Returns:
- the module names block number
-
getModNamesByteNumber
public short getModNamesByteNumber()Returns the module names byte number.- Returns:
- the module names byte number
-
getModNamesOffset
public int getModNamesOffset()Returns the module names file offset.- Returns:
- the module names file offset
-