目前已经完成的GARMIN简体中文汉化设备有: Garmin MAP60C/60CS/60CX/60CSX, MAP76C/76CS/76CX/76CSX, Etrex Vista CX/Legend CX/Venture CX

1. IMG File Format (part 3)

上一篇 / 下一篇  2007-10-08 20:27:25 / 个人分类:Garmin 地图格式

1.3 FAT Block


/c%H5} X^S1615After the block sequence comes what can be labeled a File Allocation Table, or FAT. The data section of the IMG file contains a number of “sub-files”, and the location and type for each is defined in a series of FAT blocks. Collectively, these blocks make up the FAT itself. Each FAT block is 512 bytes in length and corresponds to a single sub-file.
L6` |o U,Q1615
+uq9M;p;t2s"|.B1615As with the header, a block sequence counter takes up the final 480 bytes of each FAT block, mapping the sub-file to particular file blocks inside the IMG file, itself. The numbering of these sequence numbers continues from the header sequence, and from the previous FAT block sequences. This definition implies that an IMG file can never have more than 65,535 blocks, but the use of large block sizes (2048, 4096, etc…) allow the IMG file to hold several gigabytes of data. The only practical limit on IMG file size seems to be the use of 32-bit integers for file offsets, which imposes a hard limit of 4 GB.

Large sub-files, those with more than 240 blocks of data, are spanned across multiple FAT blocks with each sub-file part numbered in a 32-bit integer at offset 0x10. File size is only present in the first of these (part 0x0000).


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2007-10-08  
 123456
78910111213
14151617181920
21222324252627
28293031   

数据统计

  • 访问量: 7268
  • 日志数: 44
  • 图片数: 8
  • 建立时间: 2006-12-21
  • 更新时间: 2007-10-08

RSS订阅

Open Toolbar