26 #if defined (HAVE_CONFIG_H)
47 if (outlen == 0 && inlen != 0)
48 (*current_liboctave_error_handler)
49 (
"base64_encode: input array too large");
52 (
"base64_encode: memory allocation error");
70 reinterpret_cast<char **
> (&out),
74 (*current_liboctave_error_handler)
75 (
"base64_decode: input was not valid base64");
78 (*current_liboctave_error_handler)
79 (
"base64_decode: memory allocation error");
81 if ((outlen % (
sizeof (
double) /
sizeof (
char))) != 0)
84 (*current_liboctave_error_handler)
85 (
"base64_decode: incorrect input size");
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)
void resize(const dim_vector &dv, const T &rfv)
Size of the specified dimension.
const T * fortran_vec(void) const
Size of the specified dimension.
Vector representing the dimensions (size) of an Array.
OCTAVE_NORETURN liboctave_error_handler current_liboctave_error_handler
Array< double > base64_decode(const std::string &str)
bool base64_encode(const char *inc, const size_t inlen, char **out)
octave_value::octave_value(const Array< char > &chm, char type) return retval