|
CoreComponents 4.0.0
A Modern C++ Toolkit
|
Base64 codec. More...
#include <cc/Base64>
Public Types | |
| enum class | Padding { Auto = 0 , Mime = 1 , None = 2 } |
| Padding mode. More... | |
| enum class | Alphabet { Mime = 1 , UrlSafe = 2 } |
| Base64 alphabet. More... | |
Static Public Member Functions | |
| static String | encode (const Bytes &data, Alphabet alphabet=Alphabet::Mime, Padding padding=Padding::Auto) |
| Base64 encode data. | |
| static String | decode (const Bytes &text) |
| Base64 decode text. | |
| static long | encodedSize (const Bytes &data, Padding padding=Padding::Mime) |
| Return the encoded size of data when using the giving padding mode. | |
| static long | decodedSize (const Bytes &text) |
| Return the decoded size of the Base64 encoded data text. | |
Base64 codec.
|
strong |
|
strong |
|
static |
Base64 encode data.
| data | Binary data to be Base64 encoded |
| alphabet | Base64 alphabet |
| padding | Padding mode |
Base64 decode text.
| text | Base64 encoded data |
|
static |
Return the encoded size of data when using the giving padding mode.
|
static |
Return the decoded size of the Base64 encoded data text.