libnick 2024.12.0
A cross-platform base for native Nickvision applications.
|
#include <cstddef>
#include <filesystem>
#include <string>
#include <vector>
Go to the source code of this file.
Namespaces | |
namespace | Nickvision |
namespace | Nickvision::Helpers |
namespace | Nickvision::Helpers::CodeHelpers |
Functions | |
std::string | Nickvision::Helpers::CodeHelpers::getLastSystemError () |
Get the last system api call error message. | |
std::vector< std::byte > | Nickvision::Helpers::CodeHelpers::readFileBytes (const std::filesystem::path &path) |
Reads a file as a vector of bytes. | |
template<typename T > | |
const T & | Nickvision::Helpers::CodeHelpers::unmove (T &&t) |
Unmoves a value. | |
bool | Nickvision::Helpers::CodeHelpers::writeFileBytes (const std::filesystem::path &path, const std::vector< std::byte > &bytes, bool overwrite=true) |
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.