mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
28 lines
No EOL
359 B
C++
28 lines
No EOL
359 B
C++
#pragma once
|
|
|
|
#include "../Common.h"
|
|
|
|
NS_BF_BEGIN
|
|
|
|
#ifdef BF_PLATFORM_WINDOWS
|
|
|
|
class MappedFile
|
|
{
|
|
BF_DISALLOW_COPY(MappedFile);
|
|
public:
|
|
String mFileName;
|
|
HANDLE mMappedFile;
|
|
void* mData;
|
|
HANDLE mMappedFileMapping;
|
|
int mFileSize;
|
|
|
|
public:
|
|
bool Open(const StringImpl& fileName);
|
|
|
|
MappedFile();
|
|
~MappedFile();
|
|
};
|
|
|
|
#endif //BF_PLATFORM_WINDOWS
|
|
|
|
NS_BF_END |