summaryrefslogtreecommitdiffstats
path: root/core/utils/physfs.hh
blob: df5e392e3107511cbe4d1f53e7b47820f9d76877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef UTILS_PHYSFS_HH
#define UTILS_PHYSFS_HH 1
#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

#endif // UTILS_PHYSFS_HH