Base64 encoder class.  
 More...
#include <base64_encoder.h>
|  | 
|  | Base64Encoder () | 
|  | Constructs a base64 encoder. 
 | 
|  | 
| void | feed (const void *data, int size, bool append_result=true) | 
|  | Feeds the encoder with more data. 
 | 
|  | 
| void | finalize (bool append_result=true) | 
|  | Ends the base64 encoding. 
 | 
|  | 
| DataBuffer & | get_result () | 
|  | Returns the data in encoded form. 
 | 
|  | 
| void | reset () | 
|  | Resets the encoder. 
 | 
|  | 
|  | 
| static std::string | encode (const DataBuffer &data) | 
|  | Encode. 
 | 
|  | 
| static std::string | encode (const std::string &data) | 
|  | Encode. 
 | 
|  | 
| static std::string | encode (const void *data, int size) | 
|  | Base64 encodes data and returns it as an 8 bit string. 
 | 
|  | 
◆ Base64Encoder()
      
        
          | clan::Base64Encoder::Base64Encoder | ( |  | ) |  | 
      
 
Constructs a base64 encoder. 
 
 
◆ encode() [1/3]
  
  | 
        
          | static std::string clan::Base64Encoder::encode | ( | const DataBuffer & | data | ) |  |  | static | 
 
Encode. 
- Parameters
- 
  
  
- Returns
- String8 
 
 
◆ encode() [2/3]
  
  | 
        
          | static std::string clan::Base64Encoder::encode | ( | const std::string & | data | ) |  |  | static | 
 
Encode. 
- Parameters
- 
  
  
- Returns
- String8 
 
 
◆ encode() [3/3]
  
  | 
        
          | static std::string clan::Base64Encoder::encode | ( | const void * | data, |  
          |  |  | int | size ) |  | static | 
 
Base64 encodes data and returns it as an 8 bit string. 
 
 
◆ feed()
      
        
          | void clan::Base64Encoder::feed | ( | const void * | data, | 
        
          |  |  | int | size, | 
        
          |  |  | bool | append_result = true ) | 
      
 
Feeds the encoder with more data. 
 
 
◆ finalize()
      
        
          | void clan::Base64Encoder::finalize | ( | bool | append_result = true | ) |  | 
      
 
Ends the base64 encoding. 
 
 
◆ get_result()
Returns the data in encoded form. 
 
 
◆ reset()
      
        
          | void clan::Base64Encoder::reset | ( |  | ) |  | 
      
 
 
The documentation for this class was generated from the following file: