Class DWARFAttributeFactory
java.lang.Object
ghidra.app.util.bin.format.dwarf4.attribs.DWARFAttributeFactory
A factory for deserializing
dwarf attribute from
a stream.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMax number of bytes that dw_form_block4 is allowed to specify, 1Mb. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(BinaryReader reader, DWARFCompilationUnit unit, DWARFForm form) Read from the given BinaryReader based on the type of DWARFForm that is given.
-
Field Details
-
MAX_BLOCK4_SIZE
public static final int MAX_BLOCK4_SIZEMax number of bytes that dw_form_block4 is allowed to specify, 1Mb.- See Also:
-
-
Constructor Details
-
DWARFAttributeFactory
-
-
Method Details
-
read
public DWARFAttributeValue read(BinaryReader reader, DWARFCompilationUnit unit, DWARFForm form) throws IOException Read from the given BinaryReader based on the type of DWARFForm that is given.- Parameters:
reader- BinaryReader pointing to the value to readunit- the current compilation unitform- DWARFForm type defining the type of value to read- Returns:
- Object representing the value that was read
- Throws:
IOException- if an I/O error occurs
-