(self)
| 5334 | return self.name |
| 5335 | |
| 5336 | def __iter__(self) -> Generator[str, None, None]: |
| 5337 | _invalid = {"BigEndianStructure", "LittleEndianStructure", "Structure"} |
| 5338 | for x in dir(self.raw): |
| 5339 | if x in _invalid: continue |
| 5340 | _attr = getattr(self.raw, x) |
| 5341 | |
| 5342 | # if it's a ctypes.Structure class, add it |
| 5343 | if inspect.isclass(_attr) and issubclass(_attr, ctypes.Structure): |
| 5344 | yield x |
| 5345 | continue |
| 5346 | |
| 5347 | # also accept class factory functions |
| 5348 | if callable(_attr) and _attr.__module__ == self.name and x.endswith("_t"): |
| 5349 | yield x |
| 5350 | continue |
| 5351 | return |
| 5352 | |
| 5353 | class Modules(dict): |
| 5354 | def __init__(self, manager: "ExternalStructureManager") -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected