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

Method get_for_bv

python/collaboration/remote.py:56–69  ·  view source on GitHub ↗

Get the Remote for a Binary View :param bv: Binary view, potentially with collaboration metadata :return: Remote from one of the connected remotes, or None if not found :raises RuntimeError: If there was an error

(bv: 'binaryninja.BinaryView')

Source from the content-addressed store, hash-verified

54
55 @staticmethod
56 def get_for_bv(bv: 'binaryninja.BinaryView') -> Optional['Remote']:
57 """
58 Get the Remote for a Binary View
59
60 :param bv: Binary view, potentially with collaboration metadata
61 :return: Remote from one of the connected remotes, or None if not found
62 :raises RuntimeError: If there was an error
63 """
64 if not bv.file.has_database:
65 return None
66 db = bv.file.database
67 if db is None:
68 return None
69 return databasesync.get_remote_for_local_database(db)
70
71 @property
72 def has_loaded_metadata(self):

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by 1

mainFunction · 0.36