private long calcElementOffset(final long currentHead) {
        return arrayBase + ((currentHead & mask) << INT_ELEMENT_SCALE);
    }
This is to be used for an IPC queue with the direct buffer used being a memory
mapped file.

@param buff
@param capacity
@param viewMask
jctools-experimental/src/main/java/org/jctools/queues/SpscOffHeapIntQueue.java