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

Method get_value

dpdk/buildtools/pmdinfogen.py:34–38  ·  view source on GitHub ↗
(self, offset, size)

Source from the content-addressed store, hash-verified

32 return coff.decode_asciiz(value) # not COFF-specific
33
34 def get_value(self, offset, size):
35 section = self._symbol["st_shndx"]
36 data = self._image.get_section(section).data()
37 base = self._symbol["st_value"] + offset
38 return data[base : base + size]
39
40
41class ELFImage:

Callers 4

string_valueMethod · 0.95
get_valueMethod · 0.45
string_valueMethod · 0.45
_load_pci_idsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected