[RBF] Use generator instead of reflection based swapping.

This commit is contained in:
2025-10-21 12:02:35 +01:00
parent bb4f0ac91d
commit d7f746c4eb

View File

@@ -131,7 +131,7 @@ public sealed partial class RBF
if(rbfSb.dd_sync != RBF_SYNC && rbf9000Sb.rid_sync != RBF_SYNC && rbf9000Sb.rid_sync != RBF_CNYS) return;
if(rbf9000Sb.rid_sync == RBF_CNYS) rbf9000Sb = (NewIdSector)Marshal.SwapStructureMembersEndian(rbf9000Sb);
if(rbf9000Sb.rid_sync == RBF_CNYS) rbf9000Sb = rbf9000Sb.SwapEndian();
var sb = new StringBuilder();