Files
UnrealEngineUWP/Engine/Extras/ThirdPartyNotUE/crunchersharp/PDBReader/MemoryMappedFile.h
robert millar 947cbfaf27 Integrating RawPDB from Molecular Matters into crunchersharp.
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]
2023-01-13 15:31:28 -05:00

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);
}