23 #if defined (HAVE_CONFIG_H)
42 if (outlen == 0 && inlen != 0)
43 (*current_liboctave_error_handler)
44 (
"base64_encode: input array too large");
47 (
"base64_encode: memory allocation error");
67 (*current_liboctave_error_handler)
68 (
"base64_decode: input was not valid base64");
70 (*current_liboctave_error_handler)
71 (
"base64_decode: memory allocation error");
73 if ((outlen % (
sizeof (
double) /
sizeof (char))) != 0)
76 (*current_liboctave_error_handler)
77 (
"base64_decode: incorrect input size");
83 double *dout =
reinterpret_cast<double*
> (out);
84 std::copy (dout, dout + len, retval.
fortran_vec ());
OCTAVE_NORETURN liboctave_error_handler current_liboctave_error_handler
Array< double > octave_base64_decode(const std::string &str)
void resize(const dim_vector &dv, const T &rfv)
size_t octave_base64_encode_alloc_wrapper(const char *in, size_t inlen, char **out)
bool octave_base64_encode(const char *inc, const size_t inlen, char **out)
issues an error eealso double
bool octave_base64_decode_alloc_wrapper(const char *in, size_t inlen, char **out, size_t *outlen)
const T * fortran_vec(void) const
Vector representing the dimensions (size) of an Array.
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string