MCPcopy Create free account
hub / github.com/F-Stack/f-stack / load_image

Function load_image

dpdk/buildtools/pmdinfogen.py:239–244  ·  view source on GitHub ↗
(fmt, path)

Source from the content-addressed store, hash-verified

237
238
239def load_image(fmt, path):
240 if fmt == "elf":
241 return ELFImage(open_input(path))
242 if fmt == "coff":
243 return COFFImage(read_input(path))
244 raise Exception("unsupported object file format")
245
246
247def open_output(path):

Callers 1

mainFunction · 0.85

Calls 4

ELFImageClass · 0.85
COFFImageClass · 0.85
read_inputFunction · 0.85
open_inputFunction · 0.70

Tested by

no test coverage detected