Class DWARFAttributeFactory
- java.lang.Object
-
- ghidra.app.util.bin.format.dwarf4.attribs.DWARFAttributeFactory
-
public class DWARFAttributeFactory extends java.lang.ObjectA factory for deserializingdwarf attributefrom a stream.
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_BLOCK4_SIZEMax number of bytes that dw_form_block4 is allowed to specify, 1Mb.
-
Constructor Summary
Constructors Constructor Description DWARFAttributeFactory(DWARFProgram prog)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DWARFAttributeValueread(BinaryReader reader, DWARFCompilationUnit unit, DWARFForm form)Read from the given BinaryReader based on the type of DWARFForm that is given.
-
-
-
Field Detail
-
MAX_BLOCK4_SIZE
public static final int MAX_BLOCK4_SIZE
Max number of bytes that dw_form_block4 is allowed to specify, 1Mb.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DWARFAttributeFactory
public DWARFAttributeFactory(DWARFProgram prog)
-
-
Method Detail
-
read
public DWARFAttributeValue read(BinaryReader reader, DWARFCompilationUnit unit, DWARFForm form) throws java.io.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:
java.io.IOException- if an I/O error occurs
-
-