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

Class COFFImage

dpdk/buildtools/pmdinfogen.py:93–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91
92
93class COFFImage:
94 def __init__(self, data):
95 self._image = coff.Image(data)
96
97 @property
98 def is_big_endian(self):
99 return False
100
101 def find_by_pattern(self, pattern):
102 for symbol in self._image.symbols:
103 if re.match(pattern, symbol.name):
104 yield COFFSymbol(self._image, symbol)
105
106 def find_by_name(self, name):
107 for symbol in self._image.symbols:
108 if symbol.name == name:
109 return COFFSymbol(self._image, symbol)
110 return None
111
112
113def define_rte_pci_id(is_big_endian):

Callers 1

load_imageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected