Quote:
Originally Posted by kaito
Code:
A8B10: 00 00 00 00-44 6F 77 6E-6C 6F 61 64-69 6E 67 2C Downloading,
A8B20: 49 64 3D 25-70 2C 20 66-69 6C 65 3D-25 73 00 00 Id=%p, file=%s
A8B30: 2E 61 7A 77-00 00 00 00-2E 61 7A 77-31 00 00 00 .azw .azw1
A8B40: 2E 70 72 63-00 00 00 00-2E 70 64 66-00 00 00 00 .prc .pdf
A8B50: 2E 65 70 75-62 00 00 00-2E 6D 6F 62-69 00 00 00 .epub .mobi
A8B60: 4C 4F 41 44-20 44 45 43-4C 49 4E 45-44 3A 20 42 LOAD DECLINED: B
But the number of 00's (nulls) between each extension seems variable. How is that determined? What is the right way to add more extensions and mime types? Doesn't inserting things into a binary harm other offsets?
|
Take another look at that file layout: Character + nulls == 8
(I.E: Fixed length array of strings - at least in the above example.)