aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.h
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-03-30 17:38:54 +0200
committerGitHub <[email protected]>2022-03-30 17:38:54 +0200
commite23f7951a8d5e9c8d7ea11b9eae2815aa9037604 (patch)
tree854c396aec3fce4d1bfdebee86ec50b754a9bb6a /zenserver/cache/structuredcachestore.h
parentMerge pull request #66 from EpicGames/de/gracefully-exit-gc (diff)
downloadzen-e23f7951a8d5e9c8d7ea11b9eae2815aa9037604.tar.xz
zen-e23f7951a8d5e9c8d7ea11b9eae2815aa9037604.zip
Retain flags for small objects in structured cache (#68)
Diffstat (limited to 'zenserver/cache/structuredcachestore.h')
-rw-r--r--zenserver/cache/structuredcachestore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/zenserver/cache/structuredcachestore.h b/zenserver/cache/structuredcachestore.h
index 9ffc06b28..f39d01747 100644
--- a/zenserver/cache/structuredcachestore.h
+++ b/zenserver/cache/structuredcachestore.h
@@ -96,6 +96,7 @@ struct DiskLocation
inline uint64_t Offset() const { return OffsetAndFlags & kOffsetMask; }
inline uint64_t Size() const { return LowerSize; }
inline uint64_t IsFlagSet(uint64_t Flag) const { return OffsetAndFlags & Flag; }
+ inline uint64_t GetFlags() const { return OffsetAndFlags & kFlagsMask; }
inline ZenContentType GetContentType() const
{
ZenContentType ContentType = ZenContentType::kBinary;