extractScaled

fun Int.extractScaled(offset: Int, count: Int, scale: Int): Int

Extracts count at offset from this and convert the possible values into the range 0x00..scale