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)           |||
||+----------------------------------+||
||              ...                   ||
|+------------------------------------+|
+--------------------------------------+
|              ...                     |
+--------------------------------------+

协议文件文件:

image.png


如何读写?
rpc


putao
8 声望1 粉丝

推动世界向前发展,改善民生。


« 上一篇
发送http请求