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

Method DownloadSnapshotFile

collaboration.cpp:2626–2640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2624
2625
2626std::vector<uint8_t> CollabSnapshot::DownloadSnapshotFile(std::function<bool(size_t, size_t)> progress)
2627{
2628 ProgressContext pctxt;
2629 pctxt.callback = progress;
2630 size_t size = 0;
2631 uint8_t* data;
2632
2633 if (!BNCollaborationSnapshotDownloadSnapshotFile(m_object, ProgressCallback, &pctxt, &data, &size))
2634 throw SyncException("Failed to download snapshot file");
2635
2636 std::vector<uint8_t> out;
2637 out.insert(out.end(), data, &data[size]);
2638 delete[] data;
2639 return out;
2640}
2641
2642
2643std::vector<uint8_t> CollabSnapshot::Download(std::function<bool(size_t, size_t)> progress)

Callers

nothing calls this directly

Calls 3

SyncExceptionClass · 0.85
insertMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected