mirror of
https://github.com/rwengine/openrw.git
synced 2025-04-30 05:48:04 +03:00
19 lines
249 B
C++
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;
|