aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-11-12 08:57:38 +0100
committerMartin Ridgers <[email protected]>2021-11-12 08:57:38 +0100
commit96888168970c947636e9663cbf7c3dd219d1aeab (patch)
tree55824a08801932ad75100868204254a6372af7e3 /zenserver/cache/structuredcachestore.cpp
parentFixed dlopen/close() unresolved symbols (diff)
parentHorde remote execute (#25) (diff)
downloadzen-96888168970c947636e9663cbf7c3dd219d1aeab.tar.xz
zen-96888168970c947636e9663cbf7c3dd219d1aeab.zip
Merged main
Diffstat (limited to 'zenserver/cache/structuredcachestore.cpp')
-rw-r--r--zenserver/cache/structuredcachestore.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp
index 9c5f88d47..2b43cddeb 100644
--- a/zenserver/cache/structuredcachestore.cpp
+++ b/zenserver/cache/structuredcachestore.cpp
@@ -331,27 +331,32 @@ inline DiskLocation::DiskLocation(uint64_t Offset, uint64_t ValueSize, uint32_t
{
}
-inline uint64_t DiskLocation::CombineOffsetAndFlags(uint64_t Offset, uint64_t Flags)
+inline uint64_t
+DiskLocation::CombineOffsetAndFlags(uint64_t Offset, uint64_t Flags)
{
return Offset | Flags;
}
-inline uint64_t DiskLocation::Offset() const
+inline uint64_t
+DiskLocation::Offset() const
{
return OffsetAndFlags & kOffsetMask;
}
-inline uint64_t DiskLocation::Size() const
+inline uint64_t
+DiskLocation::Size() const
{
return LowerSize;
}
-inline uint64_t DiskLocation::IsFlagSet(uint64_t Flag) const
+inline uint64_t
+DiskLocation::IsFlagSet(uint64_t Flag) const
{
return OffsetAndFlags & Flag;
}
-inline ZenContentType DiskLocation::GetContentType() const
+inline ZenContentType
+DiskLocation::GetContentType() const
{
ZenContentType ContentType = ZenContentType::kBinary;