updateByte4

open override fun updateByte4(index: Int, value: Byte): BitArray32

Sets 4 bits value to this inline value using offset index. value must be less or equals 0xF

Example:

val set = Bitset64(0b100000) // 10 + 0000
set = set.setByte4(4, 0b1011)
println(set.toString()) // will print "101011". 10 + 1011

Parameters

index

offset for set data

value

new value