I don't understand *p++ &= 0xFF;
in the following code. Why does the operator &=
appear here?
unsafe void Foo(int[,] arr)
{
int length = arr.Length;
fixed (int* b = arr)
{
int* p = b;
for (int i = 0; i < length; i++)
*p++ &= 0xFF;
}
}