Package ghidra.app.util.bin.format.omf
Record Class Omf2or4
java.lang.Object
java.lang.Record
ghidra.app.util.bin.format.omf.Omf2or4
- Record Components:
length- 2 or 4value- The 2 or 4 byte value
- All Implemented Interfaces:
StructConverter
An OMF value that is either 2 or 4 bytes
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionOmf2or4(int length, long value) Creates an instance of aOmf2or4record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlength()Returns the value of thelengthrecord component.Returns a structure datatype representing the contents of the implementor of this interface.final StringtoString()Returns a string representation of this record class.longvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
Method Details
-
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- 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:
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
length
public int length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-
value
public long value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-