|
libnick 2025.10.0
A cross-platform base for native Nickvision applications.
|
Go to the source code of this file.
Namespaces | |
| namespace | Nickvision |
| namespace | Nickvision::Helpers |
| namespace | Nickvision::Helpers::CodeHelpers |
Functions | |
| size_t | Nickvision::Helpers::CodeHelpers::combineHash (size_t a, size_t b) noexcept |
| Combines two hash values together. | |
| std::vector< std::string > | Nickvision::Helpers::CodeHelpers::convertUrlMapToVector (const std::unordered_map< std::string, std::string > &urls) noexcept |
| Converts a map of URLs to a vector. | |
| std::string | Nickvision::Helpers::CodeHelpers::getLastSystemError () noexcept |
| Get the last system api call error message. | |
| std::vector< std::byte > | Nickvision::Helpers::CodeHelpers::readFileBytes (const std::filesystem::path &path) noexcept |
| Reads a file as a vector of bytes. | |
| template<typename T> | |
| const T & | Nickvision::Helpers::CodeHelpers::unmove (T &&t) noexcept |
| Unmoves a value. | |
| bool | Nickvision::Helpers::CodeHelpers::writeFileBytes (const std::filesystem::path &path, const std::vector< std::byte > &bytes, bool overwrite=true) noexcept |
| Writes a vector of bytes to a file. | |
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at https://www.gnu.org/copyleft/gpl.html
Functions that make working with C++ easier.