You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
38 lines
672 B
C++
38 lines
672 B
C++
// Copyright 2011-2020 Molecular Matters GmbH, all rights reserved.
|
|
|
|
#pragma once
|
|
|
|
// BEGIN EPIC MOD
|
|
#include "CoreTypes.h"
|
|
#include "LC_Types.h"
|
|
// END EPIC MOD
|
|
#include "LC_Hashing.h"
|
|
|
|
|
|
class FileAttributeCache
|
|
{
|
|
struct Hasher
|
|
{
|
|
inline size_t operator()(const std::wstring& key) const
|
|
{
|
|
return Hashing::Hash32(key.c_str(), key.length() * sizeof(wchar_t), 0u);
|
|
}
|
|
};
|
|
|
|
public:
|
|
struct Data
|
|
{
|
|
uint64_t lastModificationTime;
|
|
bool exists;
|
|
};
|
|
|
|
FileAttributeCache(void);
|
|
Data UpdateCacheData(const std::wstring& path);
|
|
|
|
size_t GetEntryCount(void) const;
|
|
|
|
private:
|
|
typedef types::unordered_map_with_hash<std::wstring, Data, Hasher> Cache;
|
|
Cache m_data;
|
|
};
|