Left shift operator
The left shift operator << produces a result by moving the left operand value’s bits to the left and filling the vacated bits on the right with 0 bits. Bits that are moved beyond the leftmost bit (the sign bit) position are discarded.
Example
The following table illustrates this using 64-bit binary values.
i := 42; | 0000000000000000000000000000000000000000000000000000000000101010 |
i << 24 | 0000000000000000000000000000000000101010000000000000000000000000 |