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

Function get_remote_for_binary_view

rust/src/collaboration/sync.rs:149–154  ·  view source on GitHub ↗

Get the Remote for a BinaryView

(bv: &BinaryView)

Source from the content-addressed store, hash-verified

147
148/// Get the Remote for a BinaryView
149pub fn get_remote_for_binary_view(bv: &BinaryView) -> Result<Option<Ref<Remote>>, ()> {
150 let Some(db) = bv.file().database() else {
151 return Ok(None);
152 };
153 get_remote_for_local_database(&db)
154}
155
156/// Get the Remote Project for a Database, returning the Remote project from one of the
157/// connected remotes, or None if not found or if projects are not pulled

Callers 1

get_for_binary_viewMethod · 0.85

Calls 3

databaseMethod · 0.45
fileMethod · 0.45

Tested by

no test coverage detected