generate_packets.py: move formatting in Variant.get_receive() to each individual part
Part of #44577. Rather than assembling a format string and then filling in the data, format each individual part. Where not needed, drop the formatting step entirely.
Part of #44577. Rather than assembling a format string and then filling in the data, format each individual part. Where not needed, drop the formatting step entirely.