Guilherme C. Hazan wrote:
Yes, i am.

guich

The sequence of callbacks reflects the PDB/PFC file structure. 72 Byte header, series of 10 bytes for each record/resource info block, and the the various records/resources.

The info blocks contain information about the size of the records(Offset into the file stream for the start of the record. With offset of the next record you can get size) , therefore if you tell the os that there is less data than the header+Info blocks say, it is a corrupt database.

i.e. if the record is 2500 bytes, you will get asked for a 2 blocks of 1024 bytes, and a block of 452 bytes.

The only time you can return less bytes than the OS asks for is for the last record. There is no information about its size, so the OS will accept a smaller buffer.

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to