摘要: //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... 阅读全文
posted @ 2012-01-10 17:43 风吹倒了蕉 阅读(10626) 评论(2) 推荐(0) 编辑