The module to perform Base64 decoding transformation.
More...
#include <ndn-cxx/security/transform/base64-decode.hpp>
|
using | OBuffer = std::vector< uint8_t > |
|
The module to perform Base64 decoding transformation.
Definition at line 32 of file base64-decode.hpp.
◆ OBuffer
◆ Base64Decode()
ndn::security::transform::Base64Decode::Base64Decode |
( |
bool |
expectNewlineEvery64Bytes = true | ) |
|
|
explicit |
Create a base64 decoding module.
- Parameters
-
expectNewlineEvery64Bytes | If true, expect newline after every 64 bytes, otherwise expect all input to be in a single line. Output is undefined if input does not conform to the requirement. |
Definition at line 55 of file base64-decode.cpp.
◆ ~Base64Decode()
ndn::security::transform::Base64Decode::~Base64Decode |
( |
| ) |
|
|
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 44 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 66 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()
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 have been written into this module.
- Exceptions
-
Error | if this module is closed or transformation error happens. |
Definition at line 33 of file transform-base.cpp.
◆ m_next
unique_ptr<Downstream> ndn::security::transform::Upstream::m_next |
|
protectedinherited |