encodeSZX static method
Converts a block size into the corresponding SZX.
Implementation
static int encodeSZX(final int blockSize) {
if (blockSize < 16) {
return 0;
}
if (blockSize > 1024) {
return 6;
}
return ((log(blockSize) / log(2)) - 4).toInt();
}