|
CommonLib
|
#include <array>#include <bit>#include <filesystem>#include <fstream>#include <iostream>#include <sstream>#include <vector>#include "../thirdparty/simdutf/singleheader/simdutf.h"#include "hash/hash_provider.h"#include "mem/mem.h"#include "ut/expr/string_expr.h"#include "ut/encoding.h"Go to the source code of this file.
Namespaces | |
| namespace | hedgedev |
| namespace | hedgedev::csl |
| namespace | hedgedev::csl::io |
| namespace | hedgedev::csl::io::file |
Functions | |
| template<typename T> | |
| bool | hedgedev::csl::io::file::try_compute_hash (hash::hash_provider< T > &in_hash_provider, std::ifstream &in_file, T &out_hash, bool in_from_beginning, hash_progress_callback_t< T > in_callback) |
| template<hash::hash_provider_t T> | |
| bool | hedgedev::csl::io::file::try_compute_hash (std::ifstream &in_file, typename T::type &out_hash, bool in_from_beginning, hash_progress_callback_t< typename T::type > in_callback) |
| template<typename T> | |
| bool | hedgedev::csl::io::file::try_compute_hash (hash::hash_provider< T > &in_hash_provider, const std::filesystem::path &in_path, T &out_hash, hash_progress_callback_t< T > in_callback) |
| template<hash::hash_provider_t T> | |
| bool | hedgedev::csl::io::file::try_compute_hash (const std::filesystem::path &in_path, typename T::type &out_hash, hash_progress_callback_t< typename T::type > in_callback) |
| template<hash::hash_provider_t T> | |
| bool | hedgedev::csl::io::file::compare (std::ifstream &in_left, std::ifstream &in_right, bool in_from_beginning, hash_progress_callback_t< typename T::type > in_left_callback, hash_progress_callback_t< typename T::type > in_right_callback) |
| template<hash::hash_provider_t T> | |
| bool | hedgedev::csl::io::file::compare (const std::filesystem::path &in_left, const std::filesystem::path &in_right, hash_progress_callback_t< typename T::type > in_left_callback, hash_progress_callback_t< typename T::type > in_right_callback) |
| ut::encoding::encoding_type | hedgedev::csl::io::file::get_encoding (const std::filesystem::path &in_path, ut::encoding::encoding_type *out_bom, bool in_native) |
| template<ut::expr::basic_string T> | |
| T | hedgedev::csl::io::file::read_all_text (const std::filesystem::path &in_path) |
| template<ut::expr::any_string T, ut::encoding::encoding_type target_encoding> | |
| bool | hedgedev::csl::io::file::write_all_text (const std::filesystem::path &in_path, const T &in_str, bool in_write_bom) |
| template<ut::encoding::encoding_type target_encoding, ut::expr::any_string T> | |
| bool | hedgedev::csl::io::file::write_all_text (const std::filesystem::path &in_path, const T &in_str, bool in_write_bom) |
Variables | |
| constexpr uint64_t | hedgedev::csl::io::file::k_optimal_buffer_size = 0x10000 |