aboutsummaryrefslogtreecommitdiff
path: root/lib/Utils/src/Extensions
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-09-07 15:30:02 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-09-07 15:30:02 -0400
commita19807f7f73ffb023e4ffe93071fe91525fd2c8d (patch)
treeddd829ec6d4bd9fc99b9446bd49b7b051fa405ab /lib/Utils/src/Extensions
parent0419f315e5689e043f311203ab8e61f69f1ee1d6 (diff)
Squashed commit of the following:
commit 97d0c461140e4badf40454471748099266c58c85 Author: vnugent <public@vaughnnugent.com> Date: Sat Sep 7 15:18:31 2024 -0400 restsharp vuln update & remove github pull job for now commit f7eb445c9fcf4557f0bf1e1622673242b7da5ced Author: vnugent <public@vaughnnugent.com> Date: Sat Sep 7 14:51:44 2024 -0400 update manual plugin loading api commit d3fa866898747c7b7535f2796f8046cdd9766763 Author: vnugent <public@vaughnnugent.com> Date: Sat Sep 7 12:56:36 2024 -0400 package updates commit bdb62d04a7c7ea9bcea01b6314ba3306e07099f1 Author: vnugent <public@vaughnnugent.com> Date: Sat Sep 7 12:50:58 2024 -0400 minor memory api internal cleanup commit d297b3a958e13a76ea61c8df588ec32ea9a40faf Author: vnugent <public@vaughnnugent.com> Date: Mon Aug 26 22:21:56 2024 -0400 refactor: #7 Update compression style, platform and linking
Diffstat (limited to 'lib/Utils/src/Extensions')
-rw-r--r--lib/Utils/src/Extensions/MemoryExtensions.cs9
1 files changed, 6 insertions, 3 deletions
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
/// <returns>The new <see cref="SubSequence{T}"/> within the block</returns>
/// <exception cref="ArgumentOutOfRangeException"></exception>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static SubSequence<T> GetSubSequence<T>(this IMemoryHandle<T> block, nuint offset, int size) => new (block, offset, size);
+ public static SubSequence<T> GetSubSequence<T>(this IMemoryHandle<T> block, nuint offset, int size)
+ => new (block, offset, size);
/// <summary>
/// Gets a <see cref="SubSequence{T}"/> window within the current block
@@ -809,7 +810,8 @@ namespace VNLib.Utils.Extensions
/// <exception cref="ArgumentOutOfRangeException"></exception>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[Obsolete("Functions are included directly on the type now")]
- public static Span<T> AsSpan<T>(this in UnsafeMemoryHandle<T> handle, int start) where T: unmanaged => handle.Span[start..];
+ public static Span<T> AsSpan<T>(this in UnsafeMemoryHandle<T> handle, int start) where T: unmanaged
+ => handle.Span[start..];
/// <summary>
/// Creates a new sub-sequence over the target handle. (allows for convient sub span)
@@ -822,7 +824,8 @@ namespace VNLib.Utils.Extensions
/// <exception cref="ArgumentOutOfRangeException"></exception>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[Obsolete("Functions are included directly on the type now")]
- public static Span<T> AsSpan<T>(this in UnsafeMemoryHandle<T> handle, int start, int count) where T : unmanaged => handle.Span.Slice(start, count);
+ public static Span<T> AsSpan<T>(this in UnsafeMemoryHandle<T> handle, int start, int count) where T : unmanaged
+ => handle.Span.Slice(start, count);
/// <summary>
/// Raises an <see cref="ObjectDisposedException"/> if the current handle