libnick 2025.1.0
A cross-platform base for native Nickvision applications.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages Concepts
codehelpers.h File Reference

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.
 

Detailed Description

Author
Nicholas Logozzo nlogo.nosp@m.zzo2.nosp@m.25@gm.nosp@m.ail..nosp@m.com

LICENSE

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

DESCRIPTION

Functions that make working with C++ easier.