mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
update 电单车协议
This commit is contained in:
@@ -301,6 +301,12 @@ public class BytesUtil {
|
||||
return src;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
byte[] length = new byte[] {0x09, 0x00};
|
||||
int i = BytesUtil.bytesToIntLittle(length);
|
||||
System.out.println(i);
|
||||
}
|
||||
|
||||
/**
|
||||
* byte数组中取int数值,本方法适用于(低位在前,高位在后 )的顺序。小端模式
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user