java - RandomAccessFile为什么位移4次就能写入一个Int?
怪我咯
怪我咯 2017-04-18 10:39:19
0
2
809
怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
Ty80
aaaaaaaabbbbbbbbccccccccdddddddd
>>>24
000000000000000000000000aaaaaaaa
&FF
000000000000000000000000aaaaaaaa
aaaaaaaabbbbbbbbccccccccdddddddd
>>> 16
0000000000000000aaaaaaaabbbbbbbb
&FF
000000000000000000000000bbbbbbbb
aaaaaaaabbbbbbbbccccccccdddddddd
>>> 8
00000000aaaaaaaabbbbbbbbcccccccc
&FF
000000000000000000000000cccccccc
aaaaaaaabbbbbbbbccccccccdddddddd
>>>0
aaaaaaaabbbbbbbbccccccccdddddddd
&FF
000000000000000000000000dddddddd
黄舟

Just like the first answer, the 0xFF masking bit masks the upper 24 bits of data, so there is no duplication

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!