ACE 8.0.0
|
Encode/Decode a stream of bytes according to Base64 encoding. More...
#include <Codecs.h>
Static Public Member Functions | |
static ACE_Byte * | encode (const ACE_Byte *input, const size_t input_len, size_t *output_len, bool is_chunked=true) |
static ACE_Byte * | decode (const ACE_Byte *input, size_t *output_len) |
static size_t | length (const ACE_Byte *input) |
Protected Member Functions | |
ACE_Base64 ()=default | |
Private Member Functions | |
ACE_Base64 (ACE_Base64 const &)=delete | |
ACE_Base64 & | operator= (ACE_Base64 const &)=delete |
Static Private Member Functions | |
static void | init () |
Initialize the tables for encoding/decoding. | |
Static Private Attributes | |
static ACE_Byte | decoder_ [] |
Alphabet used for decoding i.e decoder_[alphabet_[i = 0..63]] = i. | |
static ACE_Byte | member_ [] |
static bool | init_ = false |
Boolean to denote whether initialization is complete. | |
Encode/Decode a stream of bytes according to Base64 encoding.
This class provides methods to encode or decode a stream of bytes to/from Base64 encoding. It doesn't convert the input stream to a canonical form before encoding.
|
protecteddefault |
|
privatedelete |
Decodes a stream of Base64 to bytes data
input | Encoded Base64 data in byte stream. |
output_len | Length of the binary byte stream. |
|
static |
Encodes a stream of bytes to Base64 data
input | Binary data in byte stream. |
input_len | Length of the byte stream. |
output_len | Length of the encoded Base64 byte stream. |
is_chunked | If true, terminate 72 character blocks with newline |
|
staticprivate |
Initialize the tables for encoding/decoding.
Return the length of the encoded input data
input | Encoded Base64 data in byte stream. |
|
privatedelete |
|
staticprivate |
Alphabet used for decoding i.e decoder_[alphabet_[i = 0..63]] = i.
|
staticprivate |
Alphabet used to check valid range of encoded input i.e member_[alphabet_[0..63]] = 1