update 电单车协议

This commit is contained in:
Guoqs
2024-08-03 16:02:50 +08:00
parent 397353c7e5
commit b535eba509
5 changed files with 53 additions and 45 deletions

View File

@@ -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数值本方法适用于(低位在前,高位在后 )的顺序。小端模式
*/