.. index:: pair: class; EE::System::Base64 .. _doxid-class_e_e_1_1_system_1_1_base64: class EE::System::Base64 ======================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class Base64 { public: // methods static int :ref:`encode`(size_t in_len, const unsigned char* in, size_t out_len, char* out); static int :ref:`decode`(size_t in_len, const char* in, size_t out_len, unsigned char* out); static bool :ref:`encode`(const std::string& in, std::string& out); static bool :ref:`decode`(const std::string& in, std::string& out); static int :ref:`encodeSafeOutLen`(size_t in_len); static int :ref:`decodeSafeOutLen`(size_t in_len); }; .. _details-class_e_e_1_1_system_1_1_base64: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; encode .. _doxid-class_e_e_1_1_system_1_1_base64_1ab5a2ab7ac7ea9576d8b76456799b506e: .. ref-code-block:: cpp :class: doxyrest-title-code-block static int encode(size_t in_len, const unsigned char* in, size_t out_len, char* out) Encode binary data into base64 digits with MIME style === pads .. rubric:: Returns: The final length of the output .. index:: pair: function; decode .. _doxid-class_e_e_1_1_system_1_1_base64_1a034f826c98b4e72ca9862f335b27bf0d: .. ref-code-block:: cpp :class: doxyrest-title-code-block static int decode(size_t in_len, const char* in, size_t out_len, unsigned char* out) Decode base64 digits with MIME style === pads into binary data .. rubric:: Returns: The final length of the output .. index:: pair: function; encode .. _doxid-class_e_e_1_1_system_1_1_base64_1a753d27384db7c6d8f7b37a70db4c21a4: .. ref-code-block:: cpp :class: doxyrest-title-code-block static bool encode(const std::string& in, std::string& out) Encodes a string into a base64 string .. rubric:: Returns: True if encoding was successful .. index:: pair: function; decode .. _doxid-class_e_e_1_1_system_1_1_base64_1a1d0503f55095f28944603e254a0456f4: .. ref-code-block:: cpp :class: doxyrest-title-code-block static bool decode(const std::string& in, std::string& out) Decodes a base64 string to a string .. rubric:: Returns: True if encoding was successful .. index:: pair: function; encodeSafeOutLen .. _doxid-class_e_e_1_1_system_1_1_base64_1a535a5816fb5d296c9f79f3ad3df49d2b: .. ref-code-block:: cpp :class: doxyrest-title-code-block static int encodeSafeOutLen(size_t in_len) .. rubric:: Returns: A safe encoding output length for an input of the length indicated .. index:: pair: function; decodeSafeOutLen .. _doxid-class_e_e_1_1_system_1_1_base64_1af56f2ab7869a2f1d6d257763e541e020: .. ref-code-block:: cpp :class: doxyrest-title-code-block static int decodeSafeOutLen(size_t in_len) .. rubric:: Returns: A safe decoding output length for an input of the length indicated