Hello,

 I am looking up some code and I was always a little weak when it came
to bitwise operations. So in this code I find this line

data[dataLength] = (uint) (value & 0xFFFFFFFF);

and there is other line

data[maxLength-1] & 0x80000000

So I am really confused with the anding of the 2. Can anyone explain
what goes on in these 2 things ? I mean what is the significance if
any. I have seen this 0xFFFFFFFF before but failed to understand why
this constant was used.

Also what happens if you bit shift 32 bits on a number like -1. How do
I calculate the right/left shift on a certain number. Is there a
formula I need to understand.

Thanks,

-S

Reply via email to