git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60976
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
/** @addtogroup group_funcmacro_misc */
//@{
/** @addtogroup group_funcmacro_misc */
//@{
+/**
+ Elements of this enum specify the possible behaviours of wxBase64Decode
+ when an invalid character is encountered.
+*/
+enum wxBase64DecodeMode
+{
+ wxBase64DecodeMode_Strict, ///< Normal behaviour: stop at any invalid characters.
+ wxBase64DecodeMode_SkipWS, ///< Skip whitespace characters.
+ wxBase64DecodeMode_Relaxed ///< The most lenient behaviour: simply ignore all invalid characters.
+};
+
/**
This function encodes the given data using base64.
/**
This function encodes the given data using base64.
size_t *posErr = NULL);
/**
size_t *posErr = NULL);
/**
- See the wxBase64Decode(void*,size_t,const char*,size_t,wxBase64DecodeMode,size_t)
+ See the wxBase64Decode(void*,size_t,const char*,size_t,wxBase64DecodeMode,size_t*)
overload for more info about the parameters of this function.
This overload allocates memory internally and returns it as wxMemoryBuffer
overload for more info about the parameters of this function.
This overload allocates memory internally and returns it as wxMemoryBuffer
size_t *posErr = NULL);
/**
size_t *posErr = NULL);
/**
- See the wxBase64Decode(void*,size_t,const char*,size_t,wxBase64DecodeMode,size_t)
+ See the wxBase64Decode(void*,size_t,const char*,size_t,wxBase64DecodeMode,size_t*)
overload for more info about the parameters of this function.
This overload takes as input a wxString and returns the internally-allocated
overload for more info about the parameters of this function.
This overload takes as input a wxString and returns the internally-allocated