public int peekInt() {
        final long currentHead = getHeadPlain();
        if (currentHead >= getTailCache()) {
            setTailCache(getTail());
            if (currentHead >= getTailCache()) {
                return Integer.MIN_VALUE;
            }
        }

        final long offset = calcElementOffset(currentHead);
        return UnsafeAccess.UNSAFE.getInt(offset);
    }
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