mirror of
https://github.com/rwengine/openrw.git
synced 2025-04-30 05:48:04 +03:00
21 lines
308 B
C++
21 lines
308 B
C++
#ifndef RWENGINE_FILEHANDLE_HPP
|
|
#define RWENGINE_FILEHANDLE_HPP
|
|
|
|
#include <memory>
|
|
|
|
/**
|
|
* @brief Contains a pointer to a file's contents.
|
|
*/
|
|
struct FileContentsInfo
|
|
{
|
|
char* data;
|
|
size_t length;
|
|
|
|
~FileContentsInfo() {
|
|
delete[] data;
|
|
}
|
|
};
|
|
|
|
typedef std::shared_ptr<FileContentsInfo> FileHandle;
|
|
|
|
#endif
|