Returns a list of namespaces for the current BinaryView
(self)
| 3296 | |
| 3297 | @property |
| 3298 | def namespaces(self) -> List['_types.NameSpace']: |
| 3299 | """Returns a list of namespaces for the current BinaryView""" |
| 3300 | count = ctypes.c_ulonglong(0) |
| 3301 | nameSpaceList = core.BNGetNameSpaces(self.handle, count) |
| 3302 | assert nameSpaceList is not None, "core.BNGetNameSpaces returned None" |
| 3303 | result = [] |
| 3304 | try: |
| 3305 | for i in range(count.value): |
| 3306 | result.append(_types.NameSpace._from_core_struct(nameSpaceList[i])) |
| 3307 | return result |
| 3308 | finally: |
| 3309 | core.BNFreeNameSpaceList(nameSpaceList, count.value) |
| 3310 | |
| 3311 | @property |
| 3312 | def view_type(self) -> str: |
nothing calls this directly
no test coverage detected