Encoding.uuencodeStep

size_t uuencodeStep(ubyte[] inbuf, ref ubyte[] outbuf, ref ubyte[] uubuf, ref int state, ref uint save)

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, state and save (initialize to 0 on first invocation).

Parameters

inbufinput buffer
outbufoutput stream
uubuftemporary buffer of 60 bytes
stateholds the number of bits that are stored in save
saveleftover bits that have not yet been encoded

Returns

the number of bytes encoded.