Initial commit: AetherBags + KamiToolKit for FC Gitea
Debug Build and Test / Build against Latest Dalamud (push) Has been cancelled
Debug Build and Test / Build against Staging Dalamud (push) Has been cancelled

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-08 14:46:31 -05:00
commit 8db4ce6094
375 changed files with 34124 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace KamiToolKit.Classes;
internal static class GenericUtil {
public static bool AreEqual<T>(T? left, T? right) {
if (default(T) == null) return ReferenceEquals(left, right);
if (left == null || right == null) return left == null && right == null;
var leftSpan = MemoryMarshal.CreateReadOnlySpan(ref Unsafe.As<T, byte>(ref left), Unsafe.SizeOf<T>());
var rightSpan = MemoryMarshal.CreateReadOnlySpan(ref Unsafe.As<T, byte>(ref right), Unsafe.SizeOf<T>());
return leftSpan.SequenceEqual(rightSpan);
}
}