private static Object instFloatStringData(byte[] response, String type) {
int[] result = new int[response.length * 2];
for (int i = 0; i < response[8] / 2; i++) {
result[i] = ((response[i * 2 + 9] << 8) + response[i * 2 + 10]);
}
return result;
}
java实现byte数组转int数组
最新推荐文章于 2023-07-28 14:50:38 发布