| 39 | |
| 40 | @dataclasses.dataclass |
| 41 | class CacheSymbol: |
| 42 | symbol_type: sccore.SymbolTypeEnum |
| 43 | address: int |
| 44 | name: str |
| 45 | |
| 46 | def __str__(self): |
| 47 | return repr(self) |
| 48 | |
| 49 | def __repr__(self): |
| 50 | return f"<CacheSymbol '{self.name}': 0x{self.address:x}>" |
| 51 | |
| 52 | def region_from_api(region: sccore.BNSharedCacheRegion) -> CacheRegion: |
| 53 | return CacheRegion( |