mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-11 20:32:13 +08:00
66ca3985c9
* move functions into util * read bz2 into stream * pre-decompress log in the download thread * cleanup logreader * cache sha256 path * use readBZ2file in test_logger * Revert "cache sha256 path" This reverts commit 60459d3ea09a2c80f4560cf95b1ce7d6af59f06d. * use macro * use ostringstream * cleanup readBZ2File * move precise_nano_sleep into util old-commit-hash: d28b98c60244e2bb9e32810e881ea445a912606c
11 lines
328 B
C++
11 lines
328 B
C++
#pragma once
|
|
|
|
#include <atomic>
|
|
#include <ostream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
void precise_nano_sleep(long sleep_ns);
|
|
bool readBZ2File(const std::string_view file, std::ostream &stream);
|
|
bool httpMultiPartDownload(const std::string &url, const std::string &target_file, int parts, std::atomic<bool> *abort = nullptr);
|