OnixS C++ FIX Engine 4.14.0
Users' manual and API documentation
Loading...
Searching...
No Matches
Base64Encoding Class Reference

#include <OnixS/FIXEngine/Cryptography/Base64Encoding.h>

Static Public Member Functions

static std::string encode (const void *data, const size_t dataSize)
static void decode (ByteArray &decoded, const std::string &encoded)
static std::string encodeUrl (const void *data, const size_t dataSize)
static void decodeUrl (ByteArray &decoded, const std::string &encoded)

Detailed Description

Definition at line 30 of file Base64Encoding.h.

Member Function Documentation

◆ decode()

void decode ( ByteArray & decoded,
const std::string & encoded )
static

Reconstructs the binary data from the BASE64-encoded text.

Exceptions
Anexception if the text is corrupted or not BASE64-encoded.

◆ decodeUrl()

void decodeUrl ( ByteArray & decoded,
const std::string & encoded )
static

Reconstructs the binary data from the BASE64URL-encoded text.

Exceptions
Anexception if the text is corrupted or not BASE64URL-encoded.

◆ encode()

std::string encode ( const void * data,
const size_t dataSize )
static

Returns the BASE64 presentation of the binary data.

Note
Encoding throws nothing.

◆ encodeUrl()

std::string encodeUrl ( const void * data,
const size_t dataSize )
static

Returns the BASE64URL presentation of the binary data.

Note
Encoding throws nothing.