06.03.2019, 17:38
It's a bit shift.
If you have a binary number, eg 0b0101 it will become 0b1010 (all bits are shifted 1 position to the left).
What it does in this case is shift every entries' value 1 to the left per item in the enumerator.
The first one will be 1 (0b1), the second will be 0b10, the third 0b100, etc.
It lets you make a list of flags without having to manually assign a value to each one, it will build the order automatically.
If you have a binary number, eg 0b0101 it will become 0b1010 (all bits are shifted 1 position to the left).
What it does in this case is shift every entries' value 1 to the left per item in the enumerator.
The first one will be 1 (0b1), the second will be 0b10, the third 0b100, etc.
It lets you make a list of flags without having to manually assign a value to each one, it will build the order automatically.