Base64.decodeStep

Incrementally decode a sequence of binary data from 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. The output buffer must be large enough to fit all the data that will be written to it. Since base64 encodes 3 bytes in 4 chars you need at least: (len / 4) * 3 + 3 bytes (+ 3 may be needed in case of non-zero state). Since 2.12

class Base64
static
decodeStep
(
string inn
,
char* f_out
,
ref int state
,
ref uint save
)

Parameters

state int

Saved state between steps, initialize to 0. inout

save uint

Saved state between steps, initialize to 0. inout

Return Value

Type: gsize

The number of bytes of output that was written

Meta