Class LinkedArrayQueueUtil

java.lang.Object
org.jctools.queues.LinkedArrayQueueUtil

final class LinkedArrayQueueUtil extends Object
This is used for method substitution in the LinkedArray classes code generation.
  • Constructor Details

    • LinkedArrayQueueUtil

      LinkedArrayQueueUtil()
  • Method Details

    • length

      static int length(Object[] buf)
    • modifiedCalcCircularRefElementOffset

      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. This is compensated for by reducing the element shift. The computation is constant folded, so there's no cost.
    • nextArrayOffset

      static long nextArrayOffset(Object[] curr)