Function c4::base64_encode

Function Documentation

size_t c4::base64_encode(substr encoded, cblob data)

base64-encode binary data.

Parameters:
  • encoded – [out] output buffer for encoded data

  • data – [in] the input buffer with the binary data

Returns:

the number of bytes needed to return the output. No writes occur beyond the end of the output buffer.