1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-10-05 08:37:20 +02:00
openrw/rwlib/source/platform/FileHandle.hpp

19 lines
249 B
C++

#pragma once
#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;