国产成人毛片视频|星空传媒久草视频|欧美激情草久视频|久久久久女女|久操超碰在线播放|亚洲强奸一区二区|五月天丁香社区在线|色婷婷成人丁香网|午夜欧美6666|纯肉无码91视频

short和long如何轉(zhuǎn)換 如何把一個(gè)byte數(shù)組的數(shù)字轉(zhuǎn)換成int?

如何把一個(gè)byte數(shù)組的數(shù)字轉(zhuǎn)換成int?int轉(zhuǎn)byte數(shù)組publicstaticbyte[]inttobytes 2(intn){byte[]b=newbyte[4]for(inti=0i<

如何把一個(gè)byte數(shù)組的數(shù)字轉(zhuǎn)換成int?

int轉(zhuǎn)byte數(shù)組publicstaticbyte[]inttobytes 2(intn){byte[]b=newbyte[4]for(inti=0i<4i){b[i]=(byte)(n>>(24-i*8))}returnb}byte轉(zhuǎn)換;int publicstaticintbytepoint2(byte[]b){intmask=0xffinttemp=0intn=0for(inti=0i)<b.lengthi公司){n<<=8temp=b[i]&maskn |=temp}返回n}