firstByte = (0x000000FF & ((int)buf[index]));
Reference:
http://www.darksleep.com/player/JavaAndUnsignedTypes.html
Java Operator
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/operators.html
Bitwise operation: http://en.wikipedia.org/wiki/Bitwise_operation
shift: << >> >>>
bitwise inclusive OR: |
bitwise AND: &
Tuesday, July 6, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment