Set the left field of the given position. Note that we are storing the node color in the low bit of the left pointer.
(int position, int left)
| 104 | * Note that we are storing the node color in the low bit of the left pointer. |
| 105 | */ |
| 106 | private void setLeft(int position, int left) { |
| 107 | int offset = position * ELEMENT_SIZE + LEFT_OFFSET; |
| 108 | data.set(offset, (left << 1) | (data.get(offset) & 1)); |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Set the left field of the given position. |