|
Xerces-C++ 3.2.4
|
#include <xercesc/util/Base64.hpp>
Public Types | |
| enum | Conformance { Conf_RFC2045 , Conf_Schema } |
Static Public Member Functions | |
| static XMLByte * | encode (const XMLByte *const inputData, const XMLSize_t inputLength, XMLSize_t *outputLength, MemoryManager *const memMgr=0) |
| Encodes octets into Base64 data. | |
| static XMLByte * | decode (const XMLByte *const inputData, XMLSize_t *decodedLength, MemoryManager *const memMgr=0, Conformance conform=Conf_RFC2045) |
| Decodes Base64 data into octets. | |
| static XMLByte * | decodeToXMLByte (const XMLCh *const inputData, XMLSize_t *decodedLength, MemoryManager *const memMgr=0, Conformance conform=Conf_RFC2045) |
| Decodes Base64 data into octets. | |
| static int | getDataLength (const XMLCh *const inputData, MemoryManager *const memMgr=0, Conformance conform=Conf_RFC2045) |
| Get data length. | |
| static XMLCh * | getCanonicalRepresentation (const XMLCh *const inputData, MemoryManager *const memMgr=0, Conformance conform=Conf_RFC2045) |
| get canonical representation | |
| enum Base64::Conformance |
|
static |
Decodes Base64 data into octets.
NOTE: The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed. Use the memory manager to release the returned buffer or operator delete() if none was provided.
| inputData | Base64 data in XMLByte stream. |
| decodedLength | Length of decoded XMLByte stream. |
| memMgr | client provided memory manager |
| conform | conformance specified: if the input data conforms to the RFC 2045 it is allowed to have any number of whitespace characters inside; if it conforms to the XMLSchema specs, it is allowed to have at most one whitespace character between the quartets |
References Conf_RFC2045.
Referenced by getCanonicalRepresentation().
|
static |
Decodes Base64 data into octets.
NOTE: The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed. Use the memory manager to release the returned buffer or operator delete() if none was provided.
| inputData | Base64 data in XMLCh stream. |
| decodedLength | Length of decoded XMLByte stream. |
| memMgr | client provided memory manager |
| conform | conformance specified: if the input data conforms to the RFC 2045 it is allowed to have any number of whitespace characters inside; if it conforms to the XMLSchema specs, it is allowed to have at most one whitespace character between the quartets |
References Conf_RFC2045.
|
static |
Encodes octets into Base64 data.
NOTE: The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed. Use the memory manager to release the returned buffer or operator delete() if none was provided.
|
static |
get canonical representation
Caller is responsible for the proper deallocation of the string returned.
| inputData | A string containing the Base64 |
| memMgr | client provided memory manager |
| conform | conformance specified |
return: the canonical representation of the Base64 if it is a valid Base64 0 otherwise
References Conf_RFC2045, and decode().
|
static |
Get data length.
Returns length of decoded data given an array containing encoded data.
| inputData | Base64 data in XMLCh stream. |
| memMgr | client provided memory manager |
| conform | conformance specified |
References Conf_RFC2045.