fix bug: couldn't convert package

This commit is contained in:
2025-04-17 14:25:37 +08:00
parent 3b674f413a
commit d25f9882fc
7 changed files with 187 additions and 45 deletions

View File

@@ -202,7 +202,7 @@ namespace WebProtocol
arr[2] = burstLength;
arr[3] = _reserved;
var bytesAddr = Common.NumberProcessor.NumberToBytes(address, 4).Value;
var bytesAddr = Common.Number.NumberToBytes(address, 4).Value;
Array.Copy(bytesAddr, 0, arr, 4, bytesAddr.Length);
return arr;
@@ -248,7 +248,7 @@ namespace WebProtocol
);
}
var address = Common.NumberProcessor.BytesToNumber(bytes[4..]).Value;
var address = Common.Number.BytesToNumber(bytes[4..]).Value;
return new SendAddrPackage(bytes[1], bytes[2], Convert.ToUInt32(address));
}
}