getByte8

abstract fun getByte8(index: Int): Byte

Returns byte from 8 bites using index

Example:

val set = Bitset32(0b110101)// 1101 + 01
println(set.getByte(6)) //will print "1101". 6 offset = 4 bits of byte + 2 offset

Parameters

index

Offset for getting byte