byte和int相互转换

来源:互联网 发布:mac更新软件发生错误 编辑:程序博客网 时间:2024/06/10 20:45

 temp[j] = (byte) (score & 0xff);
j++;
temp[j] = (byte) ( (score >> 8) & 0xff);


hightS[i][1] = temp[j] & 0xff;
j++;
hightS[i][1] += (temp[j] & 0xff) << 8;