flip

fun flip(startIndex: Long, endIndex: Long)

Flips a range of bits

Parameters

startIndex

lower index

endIndex

one-past the last bit to flip


fun flip(index: Long)

Flip the bit at the provided index.