Uuencodes a chunk of data.
Performs an 'encode step', only encodes blocks of 45 characters to the output at a time, saves left-over state in uubuf
,
save.length
and save
(initialize to 0 on first invocation).
uubuf |
temporary buffer of 60 bytes |
save |
leftover bits that have not yet been encoded |
in |
input stream |
len |
input stream length |
out |
output stream |
state |
holds the number of bits that are stored in |
the number of bytes encoded |