Fledge
An open source edge computing platform for industrial users
Base64DataBuffer Class Reference

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>

Inheritance diagram for Base64DataBuffer:
Collaboration diagram for Base64DataBuffer:

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...
 
- Public Member Functions inherited from DataBuffer
 DataBuffer (size_t itemSize, size_t len)
 Buffer constructor. More...
 
 DataBuffer (const DataBuffer &rhs)
 DataBuffer copy constructor. More...
 
DataBufferoperator= (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

- Protected Attributes inherited from DataBuffer
size_t m_itemSize
 
size_t m_len
 
void * m_data
 

Detailed Description

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.

Member Function Documentation

◆ encode()

string Base64DataBuffer::encode ( )

Base 64 encode the DataBuffer.

Not the first character is not the data itself but an unencoded value for itemSize


The documentation for this class was generated from the following files: