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

Method Download

collaboration.cpp:1828–1841  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1826
1827
1828std::vector<uint8_t> RemoteFile::Download(std::function<bool(size_t, size_t)> progress)
1829{
1830 ProgressContext pctxt;
1831 pctxt.callback = progress;
1832 size_t size = 0;
1833 uint8_t* data;
1834 if (!BNRemoteFileDownload(m_object, ProgressCallback, &pctxt, &data, &size))
1835 throw SyncException("Failed to download file");
1836
1837 std::vector<uint8_t> out;
1838 out.insert(out.end(), &data[0], &data[size]);
1839 delete[] data;
1840 return out;
1841}
1842
1843
1844Json::Value RemoteFile::RequestUserPositions()

Callers

nothing calls this directly

Calls 3

SyncExceptionClass · 0.85
insertMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected