A read_only file object, the memory was probably allocated with mmap() and needs deallocating accordingly.
More...
#include <file.h>
|
|
const void * | file_contents |
| | The contents of the file.
|
| |
|
size_t | size |
| | The size of the file.
|
| |
A read_only file object, the memory was probably allocated with mmap() and needs deallocating accordingly.
◆ open()
| size_t JASS::file::file_read_only::open |
( |
const std::string & |
filename | ) |
|
Open and read the file into memory.
- Parameters
-
| filename | [in] The name of the file to read |
- Returns
- The size of the file
◆ read_entire_file()
| size_t JASS::file::file_read_only::read_entire_file |
( |
const uint8_t *& |
into | ) |
const |
|
inline |
Return the contents and length of the file.
- Parameters
-
| into | [out] The pointer to write into. |
- Returns
- The size of the file in bytes
The documentation for this class was generated from the following files: