Adrien Regimbald wrote:
Hello Donald,
Perhaps you're not worried about performance, but wouldn't reading
4096 1 byte blocks be substantially slower than reading 1 4096 byte
block? You just need to do a bit of extra arithmetic to turn the
number of blocks read from FileRead into number of bytes read.
Adrien.
I don't think it's slower as I belive it is a relict from old times...
Nowadays, IMHO both values are multiplied together and then the
resulting bytes are read. And, if you do it the other way around and it
returns 0, what does it mean? 0 bytes read or anything between 0 and
4095? If you need to know how much you've read, you need to use a
blocksize of 1.
Regards
Henk
--
-------------------------------------------------------------------------
Henk Jonas [EMAIL PROTECTED]
Palm OS ® certified developer
Please contact me, if you need an off-site contract worker.
-------------------------------------------------------------------------
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/