#include <DefaultBase64Decoder.h>
Default tenduke::utl::Base64Decoder implementation (RFC 4648).
The decoder is strict: decode and decodeString accept only the standard alphabet (+, /), and the decodeUrlSafe methods only the URL-safe alphabet (-, _). Padding (=) is optional, but must be valid when present. Whitespace and other characters are not accepted. Invalid input throws tenduke::utl::Base64DecodingException.
|
| std::unique_ptr< BinaryData > | decode (const std::string &base64EncodedString) const override |
| | Decodes given Base64-encoded string to bytes.
|
| std::unique_ptr< BinaryData > | decode (const char *base64EncodedString, std::size_t numBytes) const override |
| | Decodes given Base64-encoded string to bytes.
|
| std::string | decodeString (const std::string &base64EncodedString) const override |
| | Decodes given Base64-encoded string to string (assumes that the encoded data is a string).
|
| std::string | decodeString (const char *base64EncodedString, std::size_t numBytes) const override |
| | Decodes given Base64-encoded string to string (assumes that the encoded data is a string).
|
| std::unique_ptr< BinaryData > | decodeUrlSafe (const std::string &base64EncodedString) const override |
| | Decodes given URL-safe Base64-encoded string to BinaryData.
|
| std::unique_ptr< BinaryData > | decodeUrlSafe (const char *base64EncodedString, std::size_t numBytes) const override |
| | Decodes given URL-safe Base64-encoded string to BinaryData.
|
| std::string | decodeUrlSafeString (const std::string &base64EncodedString) const override |
| | Decodes given URL-safe Base64-encoded string to string (assumes that the encoded data is a string).
|
| std::string | decodeUrlSafeString (const char *base64EncodedString, std::size_t numBytes) const override |
| | Decodes given URL-safe Base64-encoded string to string (assumes that the encoded data is a string).
|
◆ decode() [1/2]
Decodes given Base64-encoded string to bytes.
- Parameters
-
| base64EncodedString | - |
| numBytes | length of the data pointer to by parameter base64EncodedString |
- Returns
- -
Implements tenduke::utl::Base64Decoder.
◆ decode() [2/2]
◆ decodeString() [1/2]
Decodes given Base64-encoded string to string (assumes that the encoded data is a string).
- Parameters
-
| base64EncodedString | - |
| numBytes | length of the data pointer to by parameter base64EncodedString |
- Returns
- -
Implements tenduke::utl::Base64Decoder.
◆ decodeString() [2/2]
Decodes given Base64-encoded string to string (assumes that the encoded data is a string).
- Parameters
-
- Returns
- -
Implements tenduke::utl::Base64Decoder.
◆ decodeUrlSafe() [1/2]
◆ decodeUrlSafe() [2/2]
◆ decodeUrlSafeString() [1/2]
Decodes given URL-safe Base64-encoded string to string (assumes that the encoded data is a string).
- Parameters
-
| base64EncodedString | - |
| numBytes | length of the data pointer to by parameter base64EncodedString |
- Returns
- -
Implements tenduke::utl::Base64Decoder.
◆ decodeUrlSafeString() [2/2]
Decodes given URL-safe Base64-encoded string to string (assumes that the encoded data is a string).
- Parameters
-
- Returns
- -
Implements tenduke::utl::Base64Decoder.
The documentation for this class was generated from the following files: