int i = 0;
for (byte b : data){
if (b != 0){
i++;
}
}
if (i != data.length){
Log.d(TAG, "全为0");
return;
}
检查字节数组是否全为0
于 2022-03-24 15:36:54 首次发布