aboutsummaryrefslogtreecommitdiff
path: root/lib/VNLib.Data.Caching.ObjectCache
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VNLib.Data.Caching.ObjectCache')
-rw-r--r--lib/VNLib.Data.Caching.ObjectCache/src/CacheEntry.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/VNLib.Data.Caching.ObjectCache/src/CacheEntry.cs b/lib/VNLib.Data.Caching.ObjectCache/src/CacheEntry.cs
index 917052f..9370901 100644
--- a/lib/VNLib.Data.Caching.ObjectCache/src/CacheEntry.cs
+++ b/lib/VNLib.Data.Caching.ObjectCache/src/CacheEntry.cs
@@ -191,10 +191,8 @@ namespace VNLib.Data.Caching
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public readonly Span<byte> GetDataSegment()
{
- //Get the actual length of the segment
- uint length = GetLength();
//Get the segment from its begining offset and
- return _manager.GetSpan(_handle, DATA_SEGMENT_START, length);
+ return _manager.GetSpan(_handle, DATA_SEGMENT_START, GetLength());
}
/// <summary>