TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: SYLVAIN LAUZON
from: DAVID KIRSCHBAUM
date: 1997-06-27 08:02:00
subject: huffman

>>> Each encoded line begins with the line length (+32 to make it
>>> printable, usually 'M' for the regular 64-char lines).
>>
>>> For the rest, the uuencoder reads 3 bytes (24 bits) and writes
>>> them out as 4 bytes, each containing 6 bits and with 32 added
>>> to them to make them printable.
>>
>>> The last input bytes are padded with 0's if necessary to make
>>> it 3 input bytes. In most modern uuencoders, output spaces
>>> (ASCII 32, 20H) are converted to the '`' character.
 >  So, if "M" is the line count and i subtract 32 from it i got
 > 45. It doesn't make senses at all.
 > Real Email (me): lost.mind@childs.mn.pubnix.net
 > thanks!
Precisely.  45 bytes of binary data, uuencoded to be 64 bytes of text.
It's the _binary_, _output_ that's important!  That's how we can pad the
last byte if necessary to get our 3 bytes to encode to 4 bytes.  No matter:
the line length character will show the _binary_ output!
Heh heh heh .. brain bender, ne?  That's how we had to do things in the
Good Old Days .. if it warn't hard, it warn't programming, ayup!  You hadda
_work_ at these things, no feelthy 4GL and GUI's and look-up tables and F1
help ... nosirreee bob!
Why, I remember ...
[choked into submission]
---
---------------
* Origin: Toad Hall (1:3634/2.4)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.