BuringStraw

BuringStraw

【翻譯】PalmOS 的PDB格式文件

研究 MOBI 要從研究 PDB 開始。
但我還是不知道 MOBI 跟 PalmOS 有什麼關係
原文鏈接:https://wiki.mobileread.com/wiki/PDB#Palm_Database_File_Code
PalmOS 將所有 RAM 存儲保存為數據庫格式。RAM 中沒有文件系統。當同步到 PC 上時,這些數據庫將被保存在單獨的文件中,這就是添加擴展名的地方。設備 RAM 中的所有文件都必須是 Palm 數據庫格式,無論是程序還是數據。為外部存儲創建的 PDB 文件是數據文件,其中可以包含任意內容。
表格顯示有問題,看圖吧
1bSXLD.png

偏移地址字節數內容注釋
032數據庫名數據庫名,以 0 結尾。PalmOS 上作為文件名。對於電子書一般為書名,長度夠的話包含作者名
322屬性bit field.(不重要,不翻了)
0x0002 Read-Only
0x0004 Dirty AppInfoArea
0x0008 Backup this database (i.e. no conduit exists)
0x0010 (16 decimal) Okay to install newer over existing copy, if present on PalmPilot
0x0020 (32 decimal) Force the PalmPilot to reset after this database is installed
0x0040 (64 decimal) Don't allow copy of file to be beamed to other Pilot.
342版本
364創建時間Unix 時間戳
404修改時間
444最後備份時間
484修改編號?
524軟件信息 ID?軟件信息的偏移地址(如果有)或者 null
564分類 ID?分類信息的偏移地址(如果有)或者 null
604文件類型見該表
644創建者(軟件)見該表
684唯一的 ID 種子?內部使用
724下一個記錄表 ID在 PalmOS 的內存中使用
762記錄數該文件中有 N 條記錄
788N列表,每條記錄的信息
以下是每條記錄的信息重複 N 次
4記錄數據的偏移地址從文件頭開始
1記錄屬性bit field. The least significant four bits are used to represent the category values. These are the categories used to split the databases for viewing on the screen. A few of the 16 categories are pre-defined but the user can add their own. There is an undefined category for use if the user or programmer hasn't set this.
0x10 (16 decimal) Secret record bit.
0x20 (32 decimal) Record in use (busy bit).
0x40 (64 decimal) Dirty record bit.
0x80 (128, unsigned decimal) Delete record on next HotSync.
3唯一 ID一般從 0 開始數
記錄的信息結束
2?分隔一般是兩個全 0 字節
?記錄記錄的數據。。。。。
載入中......
此文章數據所有權由區塊鏈加密技術和智能合約保障僅歸創作者所有。