convertBits

fun convertBits(data: ByteArray, fromBits: Int, toBits: Int, pad: Boolean): ByteArray