You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Can load all types from a 2.5gb Win64 monolithic game pdb in ~15s, plus an additional 15s to update the winforms UI. #rb none [CL 23685300 by robert millar in ue5-main branch]
26 lines
522 B
C++
26 lines
522 B
C++
// Copyright 2011-2022, Molecular Matters GmbH <office@molecular-matters.com>
|
|
// See LICENSE.txt for licensing details (2-clause BSD License: https://opensource.org/licenses/BSD-2-Clause)
|
|
|
|
#ifndef _WIN32
|
|
#include <sys/mman.h>
|
|
#include <sys/stat.h>
|
|
#include <fcntl.h>
|
|
#include <unistd.h>
|
|
|
|
#define INVALID_HANDLE_VALUE ((long)-1)
|
|
#endif
|
|
|
|
namespace MemoryMappedFile
|
|
{
|
|
struct Handle
|
|
{
|
|
void* file;
|
|
void* fileMapping;
|
|
void* baseAddress;
|
|
long len;
|
|
};
|
|
|
|
Handle Open(const wchar_t* path);
|
|
void Close(Handle& handle);
|
|
}
|