I have a WIP fork to add a feature of WideData exploit in FILE, and it strikes on me that I need to create a funtion to merge structures into one bytes object. For example, (in hex)
00 00 00 00 12 34 56 78
+
00 03 98 7f 00 00 00 00 00 00 00 00
+
00 00 00 00 00 00 00 00 61 61 61 61 62 62 62 62
=
00 03 98 7f 12 34 56 78 61 61 61 61 62 62 62 62
I wonder if this function is implemented somewhere? If no, I would like to write it and include it in my PR. I plan to place it in packing package. It will raise an exception if situations like 00 11 22 + 11 22 00 occur, where multiple non-zero values conflict in the same position.