添加transport库

This commit is contained in:
sunqinzhe committed 2025-12-14 03:02:38 +08:00
1 parent e3f449f183
commit 3fe3366e75
18 files changed
+188 -66

No files matched your search

@@ -2,11 +2,21 @@ using Unity.Collections.LowLevel.Unsafe;
namespace GameCore.LowLevel
{
public static class StructUtility
public static class LowLevelUtility
{
public static int HashCombine(int h1, int h2)
{
var hash = h1;
hash = (hash * 397) ^ h2;
return hash;
}
public static int HashCombine(int h1, int h2, int h3)
{
return HashCombine(HashCombine(h1, h2), h3);
}
public static int OffsetOf<T, F>()
where T : struct
where F : struct
{
var fields = typeof(T).GetFields();
foreach (var f in fields)