I've found one line in Java like this :
result |= (b & 0x1f) << shift;
I've searched about what operators do but I'm still not able to understand what it is supposed to do assuming result
, b
and shift
are integer values.
Could anyone tell me what does this line is supposed to do ?
Update - Here is the sample part of the code found here
int b, shift = 0, result = 0;
do {
b = encoded.charAt(index++) - 63;
result |= (b & 0x1f) << shift;
shift += 5;
} while (b >= 0x20);