wren
Vulkan-based game engine
Toggle main menu visibility
Loading...
Searching...
No Matches
filesystem.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <filesystem>
4
#include <vector>
5
6
#include "
result.hpp
"
7
8
namespace
wren::utils::fs
{
9
10
auto
file_exists_in_dir
(
const
std::filesystem::path& root,
11
const
std::filesystem::path& file)
12
->
expected<std::filesystem::path>
;
13
14
auto
read_file_to_string
(
const
std::filesystem::path& path) -> std::string;
15
16
auto
read_file_to_bin
(
const
std::filesystem::path& path)
17
-> std::vector<uint8_t>;
18
19
}
// namespace wren::utils::fs
wren::utils::fs
Definition
filesystem.hpp:8
wren::utils::fs::file_exists_in_dir
auto file_exists_in_dir(const std::filesystem::path &root, const std::filesystem::path &file) -> expected< std::filesystem::path >
Definition
filesystem.cpp:9
wren::utils::fs::read_file_to_bin
auto read_file_to_bin(const std::filesystem::path &path) -> std::vector< uint8_t >
Definition
filesystem.cpp:33
wren::utils::fs::read_file_to_string
auto read_file_to_string(const std::filesystem::path &path) -> std::string
Definition
filesystem.cpp:26
wren::expected
std::expected< T, Err > expected
Definition
result.hpp:43
result.hpp
wren_utils
include
wren
utils
filesystem.hpp
Generated by
1.17.0