Just so you know... the palm database file format

| 1 Comment
Trivial, I know, but some people need to know these things.
From the start we have the header, appinfo (optional), sortinfo (optional) followed by the record entry headers.
The header is:
FieldSizeValue
Db Name32Ascii Database Name
attributes2See DataMgr.h for meaning (dmHdrAttrResDB)
version2Version number an application would use this to decide if the content was compatible
creationDate4Creation date of the database - time from the palm epoch when it was created
modificationDate4Last modifiied date of the db. creationDate by default.
lastBackupDate4date last backed up ina hotsync
modificationNumber4when changed this gets bumped
appInfoID4Offset in this DB to the appinfo block (0 if it does not exist).
sortInfoId4Offset in the DB to the sortinfo block (0 if it does not exist)
type4the 4 character type of the pdb
creator4the 4 character creator of the pdb
uniqueIDSeed4Stumped - I don't know what this is for, leave it at 0
This is the end of the header structure, the next is the record entry information
Record list:
FieldSizeValue
nextrecordList4Address of the next record list (only used for really bit pdbs)
nRecords2Number of records in the recordlist
pad2Number of records in the recordlist
nRecords items4 * nRecordsAddresses of the records in the pdb

The address of the first record usually lies immediately following the appinfo and sortinfo data. As this data is consumer defined, the only way of determining it's size is to use relative calculations. For example, the size of the appinfo structure it's local address up to min(addr(sortinfo, Address of any data records)) - 1. The size of the sortinfo structure is it's local address up to the min(Address of any data records) - 1. They are application defined, and as such should not be messed with.

1 Comment

Hi,

SupressKeyClick Hack 1.04 crashes the Treo 650 upon radio on. 1.03 works fine as is. Thanks for treoclickhack 5, wish you could let the keyboard click while keeping the other click events silent.

Any chance of silencing the radio on/off sound? How about the insert/remove card sound?

Leave a comment

About this Entry

This page contains a single entry by Pete Shanahan published on October 6, 2006 1:22 AM.

Welcome to the real world boys.... was the previous entry in this blog.

Space/time tradeoff for disk access is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.