Bit Array32
Implements bitset based on Int. Index 0 is the most left bit. For example: index 30 in value 0b010 is 1, index 31 and 29 is 0
Example:
var data = Bitset32()
assertFalse(data[0])
assertFalse(data[1])
data = data.set(0,true)
assertTrue(data[0])
assertFalse(data[1])Content copied to clipboard