摘要:
//long类型转成byte数组 publicstaticbyte[] longToByte(long number){ long temp = number; byte[] b =newbyte[8]; for(int i =0; i < b.length; i++){ b[i]=newLong(temp &0xff).byteValue();//将最低位保存在最低位 temp = temp >>8;// 向右移8位 } return b; } //byte数组转成long publicstaticlong byteToLong(by... 阅读全文