<<
is the left-shift operator, and assuming fBitIndex
is 8 the code
fBuffer[fByteIndex] += 1 << (fBitIndex - 1);
is equivalent to
fBuffer[fByteIndex] += 128;
Why? Because a left-shift means you shift the bits of the value "left"; in your case, 00000001
(1), is shifted left 7 times, becoming 10000000
(128).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…