NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::security::transform::Base64Encode Class Reference

The module to perform Base64 encoding transformation. More...

#include <base64-encode.hpp>

Inheritance diagram for ndn::security::transform::Base64Encode:
Collaboration diagram for ndn::security::transform::Base64Encode:

Classes

class  Impl
 The implementation class which contains the internal state of the filter which includes openssl specific structures. More...
 

Public Member Functions

 Base64Encode (bool needBreak=true)
 Create a base64 encoding module. More...
 
 ~Base64Encode ()
 
- Public Member Functions inherited from ndn::security::transform::Upstream
virtual ~Upstream ()=default
 
- Public Member Functions inherited from ndn::security::transform::Downstream
virtual ~Downstream ()=default
 
size_t write (const uint8_t *buf, size_t size)
 Accept input data and perform transformation. More...
 
void end ()
 Close the input interface of a module. More...
 
bool isEnd () const
 Check if the input interface of a module is closed. More...
 
void setIndex (size_t index)
 Set the module index. More...
 
size_t getIndex () const
 Get the module index. More...
 

Additional Inherited Members

- Protected Types inherited from ndn::security::transform::Transform
typedef std::vector< uint8_t > OBuffer
 
- Protected Member Functions inherited from ndn::security::transform::Transform
 Transform ()
 
void flushOutputBuffer ()
 Read the content from output buffer and write it into next module. More...
 
void flushAllOutput ()
 Read the all the content from output buffer and write it into next module. More...
 
void setOutputBuffer (unique_ptr< OBuffer > buffer)
 Set output buffer to buffer. More...
 
bool isOutputBufferEmpty () const
 Check if output buffer is empty. More...
 
- Protected Member Functions inherited from ndn::security::transform::Upstream
 Upstream ()
 
void appendChain (unique_ptr< Downstream > tail)
 connect to next transformation module More...
 
DownstreamgetNext ()
 
- Protected Member Functions inherited from ndn::security::transform::Downstream
 Downstream ()
 
- Protected Attributes inherited from ndn::security::transform::Upstream
unique_ptr< Downstreamm_next
 

Detailed Description

The module to perform Base64 encoding transformation.

Definition at line 34 of file base64-encode.hpp.

Constructor & Destructor Documentation

◆ Base64Encode()

ndn::security::transform::Base64Encode::Base64Encode ( bool  needBreak = true)
explicit

Create a base64 encoding module.

needBreak if true, insert newline after every 64 bytes, otherwise no newline is inserted

Definition at line 54 of file base64-encode.cpp.

◆ ~Base64Encode()

ndn::security::transform::Base64Encode::~Base64Encode ( )
default

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