MCPcopy Create free account
hub / github.com/comaps/comaps / _read_sections_info

Method _read_sections_info

tools/python/mwm/mwm_python.py:77–86  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 return name in self.tags and self.tags[name].size > 0
76
77 def _read_sections_info(self) -> Dict[str, mi.SectionInfo]:
78 self.file.seek(0)
79 self.file.seek(read_uint(self.file, 8))
80 tags = {}
81 for _ in range(read_varuint(self.file)):
82 name = read_string(self.file, plain=True)
83 offset = read_varuint(self.file)
84 length = read_varuint(self.file)
85 tags[name] = mi.SectionInfo(name=name, offset=offset, size=length)
86 return tags
87
88 def _read_metadata_offsets(self) -> Dict[int, int]:
89 if self.version_.format >= 10 :

Callers 1

__init__Method · 0.95

Calls 3

read_uintFunction · 0.85
read_varuintFunction · 0.85
read_stringFunction · 0.85

Tested by

no test coverage detected