static int getOffset(final int minCapacity) {
        if (minCapacity <= 10) {
            // Minor optimisation as a lot of the requests for buffers will be for int/longs
            // so this saves a bit of maths.
            return minCapacity <= 1
                    ? ONE_BYTE_BUFFER_OFFSET
                    : TEN_BYTE_BUFFER_OFFSET;
        } else {
            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/ByteBufferPoolImpl4.java