fix bug: couldn't convert package
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user