An external library gives me a user-defined field of type long .
Trouble is I need to store flags in it AND i need to store an integer in it.
I have 6 flags and I don't need to store any number greater than 2^24 so I figured this is possible.
I can reserve 1 byte for the flags and use the other 3 to store the integer.
How can I do this?