if I count correctly, part 1 is 9 byte long right ?
No, you are counting incorrectly. 0x0200000001
can fit into five bytes. One byte is represented by two hex digits. Hence, the bytes are 02 00 00 00 01
.
1
solved confusing sizeof operator result