#include <cstdint>
#include <expected>
#include <filesystem>
#include <span>
#include <string_view>
#include <vector>
#include "error.h"
Go to the source code of this file.
|
| namespace | Tools |
| | Host tools that the build runs.
|
|
| std::expected< std::vector< std::uint8_t >, Error > | Tools::readFile (const std::filesystem::path &path) |
| | Read a whole file.
|
| std::expected< void, Error > | Tools::writeFile (const std::filesystem::path &path, std::span< const std::uint8_t > data) |
| | Replace a file with the given bytes.
|
| std::expected< void, Error > | Tools::writeFile (const std::filesystem::path &path, std::string_view text) |
| | Replace a file with the given text, written as is.
|