On Mon, May 15, 2000 at 02:27:09PM -0400, Paul Nevai wrote:
> Please tell me if doc compression is 100% lossless. Thanks. Best regards,
> Paul
Yes. The compression has a few simple modes. One is a space-capital
compression (so " A" or " I" is stored as one byte). The second is a
pair of characters indication a (negative) displacement and length to
copy at the current point. Both use the highbit set. For sets of
characters originally in the range 1-8 or 0x80-0xff, there is an
escape of 1-8 followed by the number of literal bytes. The latter is
how it avoids loss.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/