mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 23:11:49 +00:00
Windows build fix
This commit is contained in:
parent
d349b4b65a
commit
8310b1b768
9 changed files with 33 additions and 27 deletions
|
|
@ -2,15 +2,16 @@
|
|||
#define FILES_FILES_H_
|
||||
|
||||
#include <string>
|
||||
#include <filesystem>
|
||||
#include "../typedefs.h"
|
||||
|
||||
namespace files {
|
||||
extern bool write_bytes(std::string filename, const char* data, size_t size);
|
||||
extern uint append_bytes(std::string filename, const char* data, size_t size);
|
||||
extern bool read(std::string filename, char* data, size_t size);
|
||||
extern char* read_bytes(std::string filename, size_t& length);
|
||||
extern std::string read_string(std::string filename);
|
||||
extern bool write_string(std::string filename, const std::string content);
|
||||
extern bool write_bytes(std::filesystem::path, const char* data, size_t size);
|
||||
extern uint append_bytes(std::filesystem::path, const char* data, size_t size);
|
||||
extern bool read(std::filesystem::path, char* data, size_t size);
|
||||
extern char* read_bytes(std::filesystem::path, size_t& length);
|
||||
extern std::string read_string(std::filesystem::path filename);
|
||||
extern bool write_string(std::filesystem::path filename, const std::string content);
|
||||
}
|
||||
|
||||
#endif /* FILES_FILES_H_ */
|
||||
#endif /* FILES_FILES_H_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue