摘要: 1 //把其它数字类型:int(32)/long(64)/ushort(16)存入byte[],根据后面的位数偏移,后一位 + 8 2 int a = 0x911245; 3 byte[] bys = new byte[4]; 4 bys[0] = (byte)(a); 5 bys[1] = (byte)(a >> 8); 6 bys[2] = (byte)(a >> 16); 7 bys[3] = (byte)(a >> 24); 8 ... 阅读全文
posted @ 2012-02-10 10:01 garyChong 阅读(581) 评论(0) 推荐(0) 编辑