Class DWARFAttributeFactory

  • public class DWARFAttributeFactory
    extends java.lang.Object
    A factory for deserializing dwarf attribute from a stream.
    • Field Detail


        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)
        Read from the given BinaryReader based on the type of DWARFForm that is given.
        reader - BinaryReader pointing to the value to read
        unit - the current compilation unit
        form - DWARFForm type defining the type of value to read
        Object representing the value that was read
        Throws: - if an I/O error occurs