The module to perform Base64 encoding transformation.
More...
#include <ndn-cxx/security/transform/base64-encode.hpp>
|
using | OBuffer = std::vector< uint8_t > |
|
The module to perform Base64 encoding transformation.
Definition at line 34 of file base64-encode.hpp.
◆ OBuffer
◆ Base64Encode()
ndn::security::transform::Base64Encode::Base64Encode |
( |
bool |
needBreak = true | ) |
|
|
explicit |
Create a base64 encoding module.
- Parameters
-
needBreak | if true, insert newline after every 64 bytes, otherwise no newline is inserted |
Definition at line 51 of file base64-encode.cpp.
◆ ~Base64Encode()
ndn::security::transform::Base64Encode::~Base64Encode |
( |
| ) |
|
|
finaldefault |
◆ appendChain()
void ndn::security::transform::Upstream::appendChain |
( |
unique_ptr< Downstream > |
tail | ) |
|
|
protectedinherited |
◆ end()
void ndn::security::transform::Downstream::end |
( |
| ) |
|
|
inherited |
Close the input interface of a module.
This method will notify this module that there is no more input and that the module should finalize transformation.
Although end() can be invoked multiple times, only the first invocation takes effect.
Definition at line 46 of file transform-base.cpp.
◆ flushAllOutput()
void ndn::security::transform::Transform::flushAllOutput |
( |
| ) |
|
|
protectedinherited |
◆ flushOutputBuffer()
void ndn::security::transform::Transform::flushOutputBuffer |
( |
| ) |
|
|
protectedinherited |
Read the content from output buffer and write it into next module.
It is not guaranteed that all the content in output buffer will be flushed to next module.
Definition at line 68 of file transform-base.cpp.
◆ getIndex()
size_t ndn::security::transform::Downstream::getIndex |
( |
| ) |
const |
|
inlineinherited |
◆ getNext()
Downstream* ndn::security::transform::Upstream::getNext |
( |
| ) |
|
|
inlineprotectedinherited |
◆ isEnd()
bool ndn::security::transform::Downstream::isEnd |
( |
| ) |
const |
|
inlineinherited |
◆ isOutputBufferEmpty()
bool ndn::security::transform::Transform::isOutputBufferEmpty |
( |
| ) |
const |
|
protectedinherited |
◆ setIndex()
void ndn::security::transform::Downstream::setIndex |
( |
size_t |
index | ) |
|
|
inlineinherited |
◆ setOutputBuffer()
void ndn::security::transform::Transform::setOutputBuffer |
( |
unique_ptr< OBuffer > |
buffer | ) |
|
|
protectedinherited |
◆ write() [1/2]
size_t ndn::security::transform::Downstream::write |
( |
const uint8_t * |
buf, |
|
|
size_t |
size |
|
) |
| |
|
inlineinherited |
◆ write() [2/2]
size_t ndn::security::transform::Downstream::write |
( |
span< const uint8_t > |
buf | ) |
|
|
inherited |
Accept input data and perform transformation.
An upstream module should call this method to write data into this module. The written data will be transformed and the result will be written into the next downstream module.
An upstream module can keep calling this method to until end() is called, which indicates the end of input. After that, calling this method will cause Error.
If a Downstream implementation expects structured input (e.g., hex decoding requires byte-pair), it should not return less than size if final portion of input is not a complete record.
- Returns
- number of bytes that has been written into this module
- Exceptions
-
Error | if this module is closed or transformation error happens. |
Definition at line 35 of file transform-base.cpp.
◆ m_next
unique_ptr<Downstream> ndn::security::transform::Upstream::m_next |
|
protectedinherited |