I have a numerous small pieces of data that I want to be able to shove into one larger data type. Let\'s say that, hypothetically, this is a date and time. The obvious method is
Only if your architecture explicitly has a set of instructions for bit-wise manipulation and access.