How to specify and concatenate groups of bits with...
# announcements
i
How to specify and concatenate groups of bits with unknown lengths? E.g I've a class with a value that I'd like to represent using 4 bits and another 2 bits, and I'd like to concatenate these in a 6 bit array. It's probably something along the lines of shifting and using bitwise OR operator. But maybe there's a better way?