void intToByte(int i,byte *bytes,int size=4)
{
memset(bytes,0,sizeof(byte)*size);
bytes[0] = (byte)(0xff & i);
bytes[1] = (byte)((0xff00 & i) >> 8);
bytes[2] = (byte)((0xff0000 & i) >> 16);
bytes[3] = (byte)((0xff000000 & i) >> 24);
return;
}
3.int2byte
猜你喜欢
转载自blog.51cto.com/11998922/2529241
今日推荐
周排行