![]() |
Fledge
An open source edge computing platform for industrial users
|
The Base64DataBuffer class provide functionality on top of the simple DataBuffer class that is used to encode the buffer in base64 such that it may be stored as string data. More...
#include <base64databuffer.h>
Public Member Functions | |
Base64DataBuffer (const std::string &encoded) | |
Construct a DataBuffer by decoding a Base64 encoded buffer. | |
std::string | encode () |
Base 64 encode the DataBuffer. More... | |
![]() | |
DataBuffer (size_t itemSize, size_t len) | |
Buffer constructor. More... | |
DataBuffer (const DataBuffer &rhs) | |
DataBuffer copy constructor. More... | |
DataBuffer & | operator= (const DataBuffer &rhs) |
~DataBuffer () | |
DataBuffer destructor. | |
void | populate (void *src, int len) |
Populate the contents of a DataBuffer. More... | |
size_t | getItemSize () |
Return the size of each item in the buffer. | |
size_t | getItemCount () |
Return the number of items in the buffer. | |
void * | getData () |
Return a pointer to the raw data in the data buffer. | |
Additional Inherited Members | |
![]() | |
size_t | m_itemSize |
size_t | m_len |
void * | m_data |
The Base64DataBuffer class provide functionality on top of the simple DataBuffer class that is used to encode the buffer in base64 such that it may be stored as string data.
string Base64DataBuffer::encode | ( | ) |
Base 64 encode the DataBuffer.
Not the first character is not the data itself but an unencoded value for itemSize