Record Class DWARFFormContext
java.lang.Object
java.lang.Record
ghidra.app.util.bin.format.dwarf.attribs.DWARFFormContext
- Record Components:
reader-BinaryReadercompUnit-DWARFCompilationUnitdef-DWARFAttributeDefdwarfIntSize- size of dwarf serialization ints, either 4 (32 bit dwarf) or 8 (64 bit dwarf). Can be different from compUnit's intSize if this context is being used to read values from a non-".debuginfo" section that has unit headers that specify an independent intSize.
public record DWARFFormContext(BinaryReader reader, DWARFCompilationUnit compUnit, DWARFAttributeDef<?> def, int dwarfIntSize)
extends Record
Context given to the
DWARFForm.readValue(DWARFFormContext) method to enable it to
create DWARFAttributeValues.-
Constructor Summary
ConstructorsConstructorDescriptionDWARFFormContext(BinaryReader reader, DWARFCompilationUnit compUnit, DWARFAttributeDef<?> def) Creates a new DWARFFormContext, using the compUnit's int sizeDWARFFormContext(BinaryReader reader, DWARFCompilationUnit compUnit, DWARFAttributeDef<?> def, int dwarfIntSize) Creates an instance of aDWARFFormContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncompUnit()Returns the value of thecompUnitrecord component.def()Returns the value of thedefrecord component.intReturns the value of thedwarfIntSizerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reader()Returns the value of thereaderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DWARFFormContext
public DWARFFormContext(BinaryReader reader, DWARFCompilationUnit compUnit, DWARFAttributeDef<?> def) Creates a new DWARFFormContext, using the compUnit's int size- Parameters:
reader- stream that will be used to read the dwarf form valuecompUnit-DWARFCompilationUnitthat contains the valuedef- identity info about the attribute being read
-
DWARFFormContext
public DWARFFormContext(BinaryReader reader, DWARFCompilationUnit compUnit, DWARFAttributeDef<?> def, int dwarfIntSize) Creates an instance of aDWARFFormContextrecord class.- Parameters:
reader- the value for thereaderrecord componentcompUnit- the value for thecompUnitrecord componentdef- the value for thedefrecord componentdwarfIntSize- the value for thedwarfIntSizerecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
reader
Returns the value of thereaderrecord component.- Returns:
- the value of the
readerrecord component
-
compUnit
Returns the value of thecompUnitrecord component.- Returns:
- the value of the
compUnitrecord component
-
def
Returns the value of thedefrecord component.- Returns:
- the value of the
defrecord component
-
dwarfIntSize
public int dwarfIntSize()Returns the value of thedwarfIntSizerecord component.- Returns:
- the value of the
dwarfIntSizerecord component
-