Lines 51-58
Link Here
|
51 |
this.actualReceiverType = receiverType; |
51 |
this.actualReceiverType = receiverType; |
52 |
} |
52 |
} |
53 |
public void setDepth(int depth) { |
53 |
public void setDepth(int depth) { |
|
|
54 |
bits &= ~DepthMASK; // flush previous depth if any |
54 |
if (depth > 0) { |
55 |
if (depth > 0) { |
55 |
bits &= ~DepthMASK; // flush previous depth if any |
|
|
56 |
bits |= (depth & 0xFF) << DepthSHIFT; // encoded on 8 bits |
56 |
bits |= (depth & 0xFF) << DepthSHIFT; // encoded on 8 bits |
57 |
} |
57 |
} |
58 |
} |
58 |
} |