| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| public static long | modifiedCalcCircularRefElementOffset(long index, long mask)
This method assumes index is actually (index << 1) because lower bit is used for resize. |
| public static long |
| LinkedArrayQueueUtil | back to summary |
|---|---|
| public LinkedArrayQueueUtil() | |
| length | back to summary |
|---|---|
| public static int length(Object[] buf) | |
| modifiedCalcCircularRefElementOffset | back to summary |
|---|---|
| public static long modifiedCalcCircularRefElementOffset(long index, long mask) This method assumes index is actually (index << 1) because lower bit is used for resize. This is compensated for by reducing the element shift. The computation is constant folded, so there's no cost. | |
| nextArrayOffset | back to summary |
|---|---|
| public static long nextArrayOffset(Object[] curr) | |