checkBlockSize

fun checkBlockSize(blockSize: Int, minBlockSize: Int, maxBlockSize: Int): Int

Check that the block size is a power of 2, in the right bounds, and return its log in base 2.