20#ifndef YOURGAME_INTERNAL_FILE_H
21#define YOURGAME_INTERNAL_FILE_H
33 int readFileFromPath(
const std::string &filepath, std::vector<uint8_t> &dst);
35 int readFileFromArchive(
const std::string &archivepath,
const std::string &filename, std::vector<uint8_t> &dst);
37 int writeFileToPath(
const std::string &filepath,
const void *data,
size_t numBytes);
int readFileFromArchive(const std::string &archivepath, const std::string &filename, std::vector< uint8_t > &dst)
Definition file.cpp:54
int writeFileToPath(const std::string &filepath, const void *data, size_t numBytes)
Definition file.cpp:83
int readFileFromPath(const std::string &filepath, std::vector< uint8_t > &dst)
Definition file.cpp:35
bool checkIfPathIsDirectory(const std::string &filepath)
Definition file.cpp:96
void normalizePath(std::string &path)
Definition file.cpp:107
const std::string ARCHIVE_FILE_EXTENSION
Definition file.h:31