Base64.encodeStep

Incrementally encode a sequence of binary data into its Base-64 stringified representation. By calling this function multiple times you can convert data in chunks to avoid having to have the full encoded data in memory. When all of the data has been converted you must call g_base64_encode_close() to flush the saved state. The output buffer must be large enough to fit all the data that will be written to it. Due to the way base64 encodes you will need at least: (len / 3 + 1) * 4 + 4 bytes (+ 4 may be needed in case of Since 2.12

class Base64
static
encodeStep
(
char[] inn
,,
string f_out
,
ref int state
,
ref int save
)

Parameters

breakLines int

whether to break long lines

state int

Saved state between steps, initialize to 0. inout

save int

Saved state between steps, initialize to 0. inout

Return Value

Type: gsize

The number of bytes of output that was written

Meta