From e25666bbf408ff33c09dc8e2c5fe2d052363595f Mon Sep 17 00:00:00 2001 From: vnugent Date: Wed, 29 Nov 2023 00:17:13 -0500 Subject: Integrate FBM core changes for immutable client instances --- lib/VNLib.Data.Caching.ObjectCache/src/CacheEntry.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/VNLib.Data.Caching.ObjectCache') 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 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()); } /// -- cgit