| 11 | |
| 12 | @dataclasses.dataclass |
| 13 | class CacheRegion: |
| 14 | region_type: SharedCacheRegionType |
| 15 | name: str |
| 16 | start: int |
| 17 | size: int |
| 18 | image_start: int |
| 19 | # TODO: Might want to make this use the BN segment flag enum? |
| 20 | flags: sccore.SegmentFlagEnum |
| 21 | |
| 22 | def __str__(self): |
| 23 | return repr(self) |
| 24 | |
| 25 | def __repr__(self): |
| 26 | return f"<CacheRegion '{self.name}': 0x{self.start:x} + {self.size:x}>" |
| 27 | |
| 28 | @dataclasses.dataclass |
| 29 | class CacheImage: |