IWA(iWork Archive)是一种由苹果公司开发的二进制文件格式,主要用于存储iWork套件(包括Pages、Numbers和Keynote)中的文档数据。IWA格式是iWork文件包的一部分,通常与其他文件(如Index.zip、Preview.jpg等)一起存储在iWork文档包中。
iwa 文件的二进制结构:
+--------------------------------------+
| IWA File |
+--------------------------------------+
| Header |
|+------------------------------------+|
|| Magic Number (4 bytes) ||
|| Version (4 bytes) ||
|| Chunk Count (4 bytes) ||
|+------------------------------------+|
+--------------------------------------+
| Chunk 1 |
|+------------------------------------+|
|| Chunk Header ||
||+----------------------------------+||
||| Chunk Length (4 bytes) |||
||| Record Count (4 bytes) |||
||+----------------------------------+||
|| Record 1 ||
||+----------------------------------+||
||| Type Identifier (varint) |||
||| Record Data (Protobuf) |||
||+----------------------------------+||
|| Record 2 ||
||+----------------------------------+||
||| Type Identifier (varint) |||
||| Record Data (Protobuf) |||
||+----------------------------------+||
|| ... ||
|+------------------------------------+|
+--------------------------------------+
| Chunk 2 |
|+------------------------------------+|
|| Chunk Header ||
||+----------------------------------+||
||| Chunk Length (4 bytes) |||
||| Record Count (4 bytes) |||
||+----------------------------------+||
|| Record 1 ||
||+----------------------------------+||
||| Type Identifier (varint) |||
||| Record Data (Protobuf) |||
||+----------------------------------+||
|| Record 2 ||
||+----------------------------------+||
||| Type Identifier (varint) |||
||| Record Data (Protobuf) |||
||+----------------------------------+||
|| ... ||
|+------------------------------------+|
+--------------------------------------+
| ... |
+--------------------------------------+
协议文件文件:
如何读写?
rpc
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。