you make the type of the dummy the equivalent size of the packed data... in the case of the floatsToTwoBytes, the packing code uses uint16_t (I checked) so that size is legit for them.