YourGameLib
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
yourgame_internal::file Namespace Reference

Namespaces

namespace  android
 
namespace  desktop
 

Functions

int readFileFromPath (const std::string &filepath, std::vector< uint8_t > &dst)
 
int readFileFromArchive (const std::string &archivepath, const std::string &filename, std::vector< uint8_t > &dst)
 
int writeFileToPath (const std::string &filepath, const void *data, size_t numBytes)
 
bool checkIfPathIsDirectory (const std::string &filepath)
 
void normalizePath (std::string &path)
 

Variables

const std::string ARCHIVE_FILE_EXTENSION = "zip"
 

Function Documentation

◆ checkIfPathIsDirectory()

bool yourgame_internal::file::checkIfPathIsDirectory ( const std::string &  filepath)

◆ normalizePath()

void yourgame_internal::file::normalizePath ( std::string &  path)

◆ readFileFromArchive()

int yourgame_internal::file::readFileFromArchive ( const std::string &  archivepath,
const std::string &  filename,
std::vector< uint8_t > &  dst 
)

◆ readFileFromPath()

int yourgame_internal::file::readFileFromPath ( const std::string &  filepath,
std::vector< uint8_t > &  dst 
)

◆ writeFileToPath()

int yourgame_internal::file::writeFileToPath ( const std::string &  filepath,
const void *  data,
size_t  numBytes 
)

Variable Documentation

◆ ARCHIVE_FILE_EXTENSION

const std::string yourgame_internal::file::ARCHIVE_FILE_EXTENSION = "zip"