(cls: '_ArchitectureMetaClass', name: str)
| 161 | core.BNFreeArchitectureList(archs) |
| 162 | |
| 163 | def __getitem__(cls: '_ArchitectureMetaClass', name: str) -> 'Architecture': |
| 164 | binaryninja._init_plugins() |
| 165 | arch = core.BNGetArchitectureByName(name) |
| 166 | if arch is None: |
| 167 | raise KeyError(f"'{name}' is not a valid architecture") |
| 168 | return CoreArchitecture._from_cache(arch) |
| 169 | |
| 170 | |
| 171 | class Architecture(metaclass=_ArchitectureMetaClass): |
nothing calls this directly
no test coverage detected