SDEngine
Game Engine
Loading...
Searching...
No Matches
sd::Filesystem Namespace Reference

Functions

FileError read_binary (const std::filesystem::path &path, std::vector< std::byte > &buffer)
 
FileError write_binary (const std::filesystem::path &path, const std::vector< std::byte > &data, bool overwrite_existing=false)
 

Function Documentation

◆ read_binary()

FileError sd::Filesystem::read_binary ( const std::filesystem::path &  path,
std::vector< std::byte > &  buffer 
)
inline

Overwrites a given buffer with read binary data

Parameters
path
buffer*
Returns

◆ write_binary()

FileError sd::Filesystem::write_binary ( const std::filesystem::path &  path,
const std::vector< std::byte > &  data,
bool  overwrite_existing = false 
)
inline