Files
VoxelEngine/src/files/files.h
T
2023-11-16 13:07:05 +03:00

17 lines
623 B
C++

#ifndef FILES_FILES_H_
#define FILES_FILES_H_
#include <string>
#include <filesystem>
#include "../typedefs.h"
namespace files {
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_ */