From bdb62d04a7c7ea9bcea01b6314ba3306e07099f1 Mon Sep 17 00:00:00 2001 From: vnugent Date: Sat, 7 Sep 2024 12:50:58 -0400 Subject: minor memory api internal cleanup --- lib/Utils/src/Extensions/MemoryExtensions.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/Utils/src/Extensions') diff --git a/lib/Utils/src/Extensions/MemoryExtensions.cs b/lib/Utils/src/Extensions/MemoryExtensions.cs index f2399a2..0cee73d 100644 --- a/lib/Utils/src/Extensions/MemoryExtensions.cs +++ b/lib/Utils/src/Extensions/MemoryExtensions.cs @@ -339,7 +339,8 @@ namespace VNLib.Utils.Extensions /// The new within the block /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static SubSequence GetSubSequence(this IMemoryHandle block, nuint offset, int size) => new (block, offset, size); + public static SubSequence GetSubSequence(this IMemoryHandle block, nuint offset, int size) + => new (block, offset, size); /// /// Gets a window within the current block @@ -809,7 +810,8 @@ namespace VNLib.Utils.Extensions /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [Obsolete("Functions are included directly on the type now")] - public static Span AsSpan(this in UnsafeMemoryHandle handle, int start) where T: unmanaged => handle.Span[start..]; + public static Span AsSpan(this in UnsafeMemoryHandle handle, int start) where T: unmanaged + => handle.Span[start..]; /// /// Creates a new sub-sequence over the target handle. (allows for convient sub span) @@ -822,7 +824,8 @@ namespace VNLib.Utils.Extensions /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [Obsolete("Functions are included directly on the type now")] - public static Span AsSpan(this in UnsafeMemoryHandle handle, int start, int count) where T : unmanaged => handle.Span.Slice(start, count); + public static Span AsSpan(this in UnsafeMemoryHandle handle, int start, int count) where T : unmanaged + => handle.Span.Slice(start, count); /// /// Raises an if the current handle -- cgit