Standard filesystem implementation.
More...
#include <BinaryFile.h>
|
| std::vector< uint8_t > | ReadAll (const std::string &path) final |
| | Reads whole file as binary to memory.
|
| void | WriteAll (const std::string &path, const std::vector< uint8_t > &content) final |
| | Writes whole given memory to file as binary.
|
Standard filesystem implementation.
◆ ReadAll()
| std::vector< uint8_t > ReadAll |
( |
const std::string & | path | ) |
|
|
inlinefinalvirtual |
Reads whole file as binary to memory.
- Parameters
-
- Returns
- file content
- Exceptions
-
| FileException | on problem with file system |
Implements BinaryFileAccess.
◆ WriteAll()
| void WriteAll |
( |
const std::string & | path, |
|
|
const std::vector< uint8_t > & | content ) |
|
inlinefinalvirtual |
Writes whole given memory to file as binary.
- Parameters
-
| path | file path |
| content | content to write |
- Exceptions
-
| FileException | on problem with file system |
Implements BinaryFileAccess.
The documentation for this class was generated from the following file: