MCPcopy Create free account
hub / github.com/ARMmbed/DAPLink / __init__

Method __init__

tools/flash_algo.py:311–314  ·  view source on GitHub ↗

Construct a ElfFileSimple from bytes or a bytearray

(self, data)

Source from the content-addressed store, hash-verified

309 """Wrapper for elf object which allows easy access to symbols and rom"""
310
311 def __init__(self, data):
312 """Construct a ElfFileSimple from bytes or a bytearray"""
313 super(ElfFileSimple, self).__init__(BytesIO(data))
314 self.symbols = self._read_symbol_table()
315
316 def _read_symbol_table(self):
317 """Read the symbol table into the field "symbols" for easy use"""

Callers

nothing calls this directly

Calls 2

_read_symbol_tableMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected