getBits

fun getBits(offset: Int, size: Int): Int