Package ghidra.app.util.bin.format.mz
Class MzRelocation
java.lang.Object
ghidra.app.util.bin.format.mz.MzRelocation
- All Implemented Interfaces:
StructConverter
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name to use when converting into a structure data type. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the offsetint
Gets the segmentReturns a structure datatype representing the contents of the implementor of this interface.toString()
-
Field Details
-
NAME
The name to use when converting into a structure data type.- See Also:
-
-
Constructor Details
-
MzRelocation
Constructs a new old-style MZ relocation- Parameters:
reader
- ABinaryReader
positioned at the start of the relocation- Throws:
IOException
- if there was an IO-related error
-
-
Method Details
-
getSegment
public int getSegment()Gets the segment- Returns:
- The segment
-
getOffset
public int getOffset()Gets the offset- Returns:
- The offset
-
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
- Returns:
- returns a structure datatype representing the implementor of this interface
- Throws:
DuplicateNameException
- when a datatype of the same name already exists- See Also:
-
toString
-