aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-11-11 15:10:08 +0100
committerPer Larsson <[email protected]>2021-11-11 15:10:08 +0100
commitb15b04b55ecfa0335c168561c61a7568538fccb8 (patch)
tree40f68a324f081746c74c423d8c478d3da6b1b4cc /zenserver/cache/structuredcachestore.cpp
parentHandle batch requests asynchronously. (diff)
parentFormat fix. (diff)
downloadzen-b15b04b55ecfa0335c168561c61a7568538fccb8.tar.xz
zen-b15b04b55ecfa0335c168561c61a7568538fccb8.zip
Merge branch 'main' into zcache-batch
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 119062833..8b9ce8ff9 100644
--- a/zenserver/cache/structuredcachestore.cpp
+++ b/zenserver/cache/structuredcachestore.cpp
@@ -325,27 +325,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;