optimizing network stuff

This commit is contained in:
2025-07-30 05:51:39 +02:00
parent ea99249fe2
commit 159e9adcd7
56 changed files with 2272 additions and 1781 deletions

View File

@@ -14,6 +14,14 @@ namespace RebootKit.Engine.Extensions {
}
return string.Empty;
}
public static string ToHexString(this NativeSlice<byte> slice) {
StringBuilder sb = new StringBuilder(slice.Length * 3);
for (int i = 0; i < slice.Length; i++) {
sb.AppendFormat("{0:X2} ", slice[i]);
}
return sb.ToString();
}
}
}