- This overload returns a buffer with the base64 decoded binary equivalent
- of the input string. In neither case is the buffer @NULL-terminated.
+ @since 2.9.1
+
+ @header{wx/base64.h}
+ */
+size_t wxBase64Decode(void* dst, size_t dstLen,
+ const wxString& str,
+ wxBase64DecodeMode mode = wxBase64DecodeMode_Strict,
+ size_t *posErr = NULL);
+
+/**
+ Decode a Base64-encoded string and return decoded contents in a buffer.
+
+ See the wxBase64Decode(void*,size_t,const char*,size_t,wxBase64DecodeMode,size_t*)
+ overload for more information about the parameters of this function. The
+ difference of this overload is that it allocates a buffer of necessary size
+ on its own and returns it, freeing you from the need to do it manually.
+ Because of this, it is simpler to use and is recommended for normal use.