或每个二进制文件0x20

Fid*_*ido -1 algorithm math

我正在阅读谷歌解码算法.我无法理解这一步骤8 .

7. Place the 5-bit chunks into reverse order:

    00001 11111 10000 01010 00010 00001

8. OR each value with 0x20 if another bit chunk follows:

    100001 111111 110000 101010 100010 000001 
Run Code Online (Sandbox Code Playgroud)

Joh*_*ohn 8

除了最后一个值之外,为每个值添加前导值.

从第7步开始:

00001 11111 10000 01010 00010 00001

现在读这些

000001 011111 010000 001010 000010 000001

ORing with 0x20give

100001 111111 110000 101010 100010 000001

这是第8步中的内容.

(最后一个没有改变,因为它后面没有"bit chunk".)