private int getOffset(final int minCapacity) {
        if (minCapacity <= 10) {
            // Optimisation for ints/longs
            return minCapacity <= 1
                    ? ONE_BYTE_OFFSET
                    // 0
                    : TEN_BYTES_OFFSET; // 1
        }
        return (int) Math.ceil(Math.log10(minCapacity));
    }
@param n The number to test
@return True if n is a power of ten, e.g. if n==10
stroom-bytebuffer/src/main/java/stroom/bytebuffer/impl6/ByteBufferPoolImpl6.java