Форматы файлов MEMOPAD.DAT and MEMOPAD.MPA в Palm
Desktop
- Естественно, эти форматы для Palm Desktop под Windows.
- Информация, представлянная здесь может быть не совсем точной.
Так как официально, эти данные не являются открытыми.
- Компания Palm не рекомендует, вносить изменения в эти файлы самостоятельно.
Ответственность за все, что Вы будете делать с этими файлами и
структурой данный лежит полностью на Вас.
| Brand-Data |
Тип |
Размер |
Коментарии |
| Version Tag |
Char |
4*Byte |
0x00 0x01 0x50 0x4D (MP10) for Memopad |
| File Name |
CString |
|
Fully Qualified Filename of file on PC |
| Table String |
CString |
|
Custom show header |
| Next Free |
Long |
4*Byte |
Next Free Category ID |
| Category Count |
Long |
4*Byte |
Count - 1 of the number of category entries (does not include Unfiled category) |
| Category entries |
Category-Entry |
|
Occurs category count times |
| Resource ID |
Long |
4*Byte |
Schema Resource ID |
| Fields per Row |
Long |
4*Byte |
Schema Fields per row. Will be 6 for memopad. |
| Rec ID Pos |
Long |
4*Byte |
Schema Record ID Position (index to field table entry that contains record id) |
| Rec Status Pos |
Long |
4*Byte |
Schema Record Status Position (index to field table entry that contains record status) |
| Placement Pos |
Long |
4*Byte |
Schema Placement Position (index to field table entry that contains record placement position) |
| Field Count |
Short |
2*Byte |
Schema Field Count (number of fields in schema) Corrected April 19, 2000 |
| Field Entry |
Short |
2*Byte |
Schema field entry occurs field count times. For memopad the entries will
be 1,1,1,5,6,1 Corrected April 19, 2000 |
| Num Entries |
Long |
4*Byte |
Record count * 6 (number of field entries in entire file, as noted, divide by 6 to arrive at actual record count) |
| Memopad entry |
Memopad-Entry |
|
Occurs with record count |
Категории
| Имя поля |
Тип |
Размер |
Коментарии |
| Index |
Long |
4*Byte |
Category Index |
| ID |
Long |
4*Byte |
Category ID |
| Dirty Flag |
Long |
4*Byte |
Category Dirty Flag |
| Long Name |
Cstring |
- |
Long Category Name |
| Short Name |
Cstring |
- |
Short Category Name |
Записи Memopad
| Имя поля |
Тип |
Размер |
Коментарии |
| Field Type |
Long |
4*Byte |
value 1 Integer |
| Record ID |
Long |
4*Byte |
- |
| Field Type |
Long |
4*Byte |
value 1 Integer |
| Status Field |
Long |
4*Byte |
Bitwise Record Status: Pending = 0x08, Add = 0x01, Update = 0x02, Delete = 0x04, Archive = 0x80 |
| Field Type |
Long |
4*Byte |
value 1 Integer |
| Position |
Long |
4*Byte |
- |
| Field Type |
Long |
4*Byte |
value 5 Cstring |
| Padding |
Long |
4*Byte |
Always 0x0000 |
| Memo Text |
Cstring |
- |
Memo text |
| Field Type |
Long |
4*Byte |
value 6 Boolean |
| Private |
Long |
4*Byte |
1 = True |
| Field Type |
Long |
4*Byte |
value 1 Integer |
| Category |
Long |
4*Byte |
- |
Cstrings
Cstrings хранятся следующим образом:
- Строки меньше чем 255 байт хранятся с определенной длинной определенной
в первом байте определителя самой строки.
- Нулевые строки хранятся как 0x00.
- Строки в 255 байт или длиннее хранятся с флагом 0xFF за которыми следует
длинна определенная двумя байтами (2*Byte) в определителе самой строки.
Типы полей
Механизм использует типы полей для определения данных. Значения
даны ниже в таблице.
| Номер |
Значение |
| 0 |
None |
| 1 |
Integer |
| 2 |
Float |
| 3 |
Date |
| 4 |
Alpha |
| 5 |
Cstring |
| 6 |
Boolean |
| 7 |
Bitflag |
| 8 |
RepeatEvent |
© 2003 Palmomania
Не допускается прямое копирование
материала, разрешается публикация с разрешения автора и указанием источника
материала.
|