Class VarHandleQueueUtil
java.lang.Object
org.jctools.queues.varhandle.VarHandleQueueUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long[]allocateLongArray(int capacity) static <E> E[]allocateRefArray(int capacity) static longcalcCircularLongElementOffset(long index, long mask) static longcalcCircularRefElementOffset(long index, long mask) static longcalcRefElementOffset(long index) static longlaLongElement(long[] buffer, long offset) static <E> ElaRefElement(E[] buffer, long offset) static intstatic longlpLongElement(long[] buffer, long offset) static <E> ElpRefElement(E[] buffer, long offset) static longlvLongElement(long[] buffer, long offset) static <E> ElvRefElement(E[] buffer, long offset) static longmodifiedCalcCircularRefElementOffset(long index, long mask) This method assumes index is actually (index invalid input: '<'invalid input: '<' 1) because lower bit is used for resize hence the >> 1static longnextArrayOffset(Object[] curr) static voidsoLongElement(long[] buffer, long offset, long e) static <E> voidsoRefElement(E[] buffer, long offset, E value) static voidspLongElement(long[] buffer, long offset, long e) static <E> voidspRefElement(E[] buffer, long offset, E value) static <E> voidsvRefElement(E[] buffer, long offset, E value)
-
Field Details
-
ARRAY_REF_ELEMENT
-
ARRAY_LONG_ELEMENT
-
-
Constructor Details
-
VarHandleQueueUtil
public VarHandleQueueUtil()
-
-
Method Details
-
lvRefElement
public static <E> E lvRefElement(E[] buffer, long offset) -
laRefElement
public static <E> E laRefElement(E[] buffer, long offset) -
lpRefElement
public static <E> E lpRefElement(E[] buffer, long offset) -
spRefElement
public static <E> void spRefElement(E[] buffer, long offset, E value) -
soRefElement
public static <E> void soRefElement(E[] buffer, long offset, E value) -
svRefElement
public static <E> void svRefElement(E[] buffer, long offset, E value) -
calcRefElementOffset
public static long calcRefElementOffset(long index) -
calcCircularRefElementOffset
public static long calcCircularRefElementOffset(long index, long mask) -
allocateRefArray
public static <E> E[] allocateRefArray(int capacity) -
spLongElement
public static void spLongElement(long[] buffer, long offset, long e) -
soLongElement
public static void soLongElement(long[] buffer, long offset, long e) -
lpLongElement
public static long lpLongElement(long[] buffer, long offset) -
laLongElement
public static long laLongElement(long[] buffer, long offset) -
lvLongElement
public static long lvLongElement(long[] buffer, long offset) -
calcCircularLongElementOffset
public static long calcCircularLongElementOffset(long index, long mask) -
allocateLongArray
public static long[] allocateLongArray(int capacity) -
length
-
modifiedCalcCircularRefElementOffset
public static long modifiedCalcCircularRefElementOffset(long index, long mask) This method assumes index is actually (index invalid input: '<'invalid input: '<' 1) because lower bit is used for resize hence the >> 1 -
nextArrayOffset
-