I wrote out this tutorial for bitshifting in D and it's probably not the best but it gets the general idea across for new users on how to have multiple values reside in one memory address. Here is the link to the tutorial https://github.com/jordan4ibanez/bitshifting_practice/blob/main/source/app.d