|
| void | tools::copy_file (const std::string &from, const std::string &to) |
| std::string | tools::get_default_data_dir () |
| | Returns the default data directory.
|
| std::string | tools::get_os_version_string () |
| | Returns the OS version string.
|
| bool | tools::create_directories_if_necessary (const std::string &path) |
| | creates directories for a path
|
| std::error_code | tools::replace_file (const std::string &old_name, const std::string &new_name) |
| | std::rename wrapper for nix and something strange for windows.
|
| bool | tools::sanitize_locale () |
| bool | tools::disable_core_dumps () |
| bool | tools::on_startup () |
| void | tools::set_strict_default_file_permissions (bool strict) |
| ssize_t | tools::get_lockable_memory () |
| void | tools::set_max_concurrency (unsigned n) |
| unsigned | tools::get_max_concurrency () |
| bool | tools::is_local_address (const std::string &address) |
| bool | tools::is_privacy_preserving_network (const std::string &address) |
| int | tools::vercmp (const char *v0, const char *v1) |
| bool | tools::sha256sum (const uint8_t *data, size_t len, crypto::hash &hash) |
| | Creates a SHA-256 digest of a data buffer.
|
| bool | tools::sha256sum (const std::string &filename, crypto::hash &hash) |
| | Creates a SHA-256 digest of a file's contents, equivalent to the sha256sum command in Linux.
|
| boost::optional< bool > | tools::is_hdd (const char *file_path) |
| boost::optional< std::pair< uint32_t, uint32_t > > | tools::parse_subaddress_lookahead (const std::string &str) |
| std::string | tools::glob_to_regex (const std::string &val) |
| void | tools::closefrom (int fd) |
| std::string | tools::get_human_readable_timestamp (uint64_t ts) |
| std::string | tools::get_human_readable_timespan (uint64_t seconds) |
| std::string | tools::get_human_readable_bytes (uint64_t bytes) |
| void | tools::clear_screen () |
| std::vector< std::pair< std::string, size_t > > | tools::split_string_by_width (const std::string &s, size_t columns) |
| uint64_t | tools::cumulative_block_sync_weight (cryptonote::network_type nettype, uint64_t start_block, uint64_t num_blocks) |