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

Method GetRemoteSnapshotFromLocal

collaboration.cpp:138–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136
137
138Ref<CollabSnapshot> BinaryNinja::Collaboration::GetRemoteSnapshotFromLocal(Ref<Snapshot> snapshot)
139{
140 BNCollaborationSnapshot* val;
141 if (!BNCollaborationGetRemoteSnapshotFromLocal(snapshot->m_object, &val))
142 throw RemoteException("Failed to get remote snapshot for local snapshot");
143 if (val == nullptr)
144 return nullptr;
145 return new CollabSnapshot(val);
146}
147
148
149Ref<Snapshot> BinaryNinja::Collaboration::GetLocalSnapshotFromRemote(Ref<CollabSnapshot> snapshot, Ref<Database> database)

Callers

nothing calls this directly

Calls 1

RemoteExceptionClass · 0.85

Tested by

no test coverage detected