[Message]
00000430
可以直接使用强制类型转换:
byte b = (byte) aInt;
这里有两种情况,一种是要求保持值不变,例如进行数值计算,可采用强制类型转换:
int i = (int) aByte;
则需要采用位操作:
int i = b & 0xff;