23 #if defined (HAVE_CONFIG_H) 44 if (outlen == 0 && inlen != 0)
45 (*current_liboctave_error_handler)
46 (
"base64_encode: input array too large");
49 (
"base64_encode: memory allocation error");
67 reinterpret_cast<char **
> (&out),
71 (*current_liboctave_error_handler)
72 (
"base64_decode: input was not valid base64");
75 (*current_liboctave_error_handler)
76 (
"base64_decode: memory allocation error");
78 if ((outlen % (
sizeof (
double) /
sizeof (
char))) != 0)
81 (*current_liboctave_error_handler)
82 (
"base64_decode: incorrect input size");
88 std::copy (out, out + len,
retval.fortran_vec ());
96 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS) 99 octave_base64_encode (
const char *inc,
const size_t inlen,
char **out)
OCTAVE_NORETURN liboctave_error_handler current_liboctave_error_handler
bool base64_encode(const char *inc, const size_t inlen, char **out)
octave_value resize(const dim_vector &dv, bool fill=false) const
Array< double > base64_decode(const std::string &str)
size_t octave_base64_encode_alloc_wrapper(const char *in, size_t inlen, char **out)
bool octave_base64_decode_alloc_wrapper(const char *in, size_t inlen, char **out, size_t *outlen)
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