libnick 2025.9.1
A cross-platform base for native Nickvision applications.
|
Functions | |
size_t | combineHash (size_t a, size_t b) noexcept |
Combines two hash values together. | |
std::vector< std::string > | convertUrlMapToVector (const std::unordered_map< std::string, std::string > &urls) noexcept |
Converts a map of URLs to a vector. | |
std::string | getLastSystemError () noexcept |
Get the last system api call error message. | |
std::vector< std::byte > | readFileBytes (const std::filesystem::path &path) noexcept |
Reads a file as a vector of bytes. | |
template<typename T> | |
const T & | unmove (T &&t) noexcept |
Unmoves a value. | |
bool | writeFileBytes (const std::filesystem::path &path, const std::vector< std::byte > &bytes, bool overwrite=true) noexcept |
Writes a vector of bytes to a file. | |
|
noexcept |
Combines two hash values together.
a | The first hash value |
b | The second hash value |
|
noexcept |
Converts a map of URLs to a vector.
urls | The map of URLs |
|
noexcept |
Get the last system api call error message.
|
noexcept |
Reads a file as a vector of bytes.
path | The path to the file |
|
noexcept |
Unmoves a value.
t | An rvalue of T |
|
noexcept |
Writes a vector of bytes to a file.
path | The path to the file |
bytes | The bytes to write |
overwrite | Whether or not to overwrite the file if it already exists |