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

Method DownloadAnalysisCache

collaboration.cpp:2660–2673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2658
2659
2660std::vector<uint8_t> CollabSnapshot::DownloadAnalysisCache(std::function<bool(size_t, size_t)> progress)
2661{
2662 ProgressContext pctxt;
2663 pctxt.callback = progress;
2664 size_t size = 0;
2665 uint8_t* data;
2666 if (!BNCollaborationSnapshotDownloadAnalysisCache(m_object, ProgressCallback, &pctxt, &data, &size))
2667 throw SyncException("Failed to download snapshot");
2668
2669 std::vector<uint8_t> out;
2670 out.insert(out.end(), data, &data[size]);
2671 delete[] data;
2672 return out;
2673}
2674
2675
2676CollabUndoEntry::CollabUndoEntry(BNCollaborationUndoEntry* entry)

Callers

nothing calls this directly

Calls 3

SyncExceptionClass · 0.85
insertMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected