| 1826 | |
| 1827 | |
| 1828 | std::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 | |
| 1844 | Json::Value RemoteFile::RequestUserPositions() |
nothing calls this directly
no test coverage detected