Bitwise AND, Bitwise Inclusive OR question, in Java

Posted by Dave on Stack Overflow See other posts from Stack Overflow or by Dave
Published on 2009-02-18T12:59:31Z Indexed on 2010/04/16 13:13 UTC
Read the original article Hit count: 505

Filed under:
|
|
|

I've a few lines of code within a project, that I can't see the value of...

buffer[i] = (currentByte & 0x7F) | (currentByte & 0x80);

It reads the filebuffer from a file, stored as bytes, and then transfers then to buffer[i] as shown, but I can't understand what the overall purpose is, any ideas?

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about bitwise