Encoding.uuencodeStep

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).

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

Parameters

inbuf ubyte[]

input buffer

outbuf ubyte[]

output stream

uubuf ubyte[]

temporary buffer of 60 bytes

state int

holds the number of bits that are stored in save

save uint

leftover bits that have not yet been encoded

Return Value

Type: size_t

the number of bytes encoded.