summaryrefslogtreecommitdiffstats
path: root/core/utils/physfs.hh
blob: 4af94dcdd45f05c0262512d81e6c01dfdcd96842 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

namespace utils
{
bool read_file(std::string_view path, std::vector<std::byte>& buffer);
bool read_file(std::string_view path, std::string& buffer);
bool write_file(std::string_view path, const std::vector<std::byte>& buffer);
bool write_file(std::string_view path, const std::string& buffer);
} // namespace utils

namespace utils
{
std::string_view physfs_error(void);
} // namespace utils