From: Roger B. <ro...@ro...> - 2003-03-12 03:44:07
|
> In the map file (brewImageIndex.map) the files are layed out like so: > > 03 00 03 00 xx xx xx xx xx xx xx .... 00 02 00 xx xx xx ... 00 01 00 xx > xx xx xx The integer fields are two bytes in lsb order. The first field is the total number of entries. Each entry is a serial number and then the filename in a fixed length field. There is space for 30 entries in the mapfile. Unused entries have a serial of 0xffff (or -1 if you prefer) with the name blanked out. When you delete an entry from the phone, it deletes the file on the filesystem, and marks the entry with the 0xffff serial. It also decrements the count (first field of file). This means that you can have "holes" in the index. Just like you, I initially thought that ordering would make a difference .... Roger |