MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / namespaces

Method namespaces

python/binaryview.py:3298–3309  ·  view source on GitHub ↗

Returns a list of namespaces for the current BinaryView

(self)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
_from_core_structMethod · 0.45

Tested by

no test coverage detected