base64_encode_step


Description:


public size_t base64_encode_step (uint8[] @in, size_t len, bool break_lines, uint8[] @out, ref int state, ref uint save)

Performs an 'encode step', only encodes blocks of 3 characters from in into the output out at a time, saves left-over state in state and save (initialise to 0 on first invocation).

Parameters:

len

max length of data to decode

break_lines

Whether to use line breaks

state

holds the number of bits that are stored in save

save

leftover bits that have not yet been decoded

in

input stream

out

output stream

Returns:

the number of bytes encoded


Namespace: Gsf
Package: libgsf-1