Bit conversion using streaming operator

In reply to bachan21:

I don’t understand your question either. Where are the extra 12 bits supposed to come from? Try explaining wha the code would like like without using the streaming operator.