Abstraction of an intermediate transformation module. More...
#include <transform-base.hpp>
Protected Types | |
using | OBuffer = std::vector< uint8_t > |
Protected Member Functions | |
Transform ()=default | |
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 ()=default | |
void | appendChain (unique_ptr< Downstream > tail) |
Connect to the next transformation module. More... | |
Downstream * | getNext () |
Protected Member Functions inherited from ndn::security::transform::Downstream | |
Downstream ()=default | |
Additional Inherited Members | |
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 (span< const uint8_t > buf) |
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... | |
Protected Attributes inherited from ndn::security::transform::Upstream | |
unique_ptr< Downstream > | m_next |
Abstraction of an intermediate transformation module.
Definition at line 180 of file transform-base.hpp.
|
protected |
Definition at line 184 of file transform-base.hpp.
|
protecteddefault |
|
protected |
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.
Referenced by ndn::security::transform::Base64Decode::Base64Decode(), ndn::security::transform::Base64Encode::Base64Encode(), and ndn::security::transform::BlockCipher::BlockCipher().
|
protected |
Read the all the content from output buffer and write it into next module.
Definition at line 78 of file transform-base.cpp.
Referenced by ndn::security::transform::DigestFilter::DigestFilter(), ndn::security::transform::SignerFilter::SignerFilter(), and ndn::security::transform::VerifierFilter::VerifierFilter().
|
protected |
Set output buffer to buffer
.
Definition at line 86 of file transform-base.cpp.
References nonstd::optional_lite::std11::move().
Referenced by ndn::security::transform::Base64Decode::Base64Decode(), ndn::security::transform::Base64Encode::Base64Encode(), ndn::security::transform::BlockCipher::BlockCipher(), ndn::security::transform::DigestFilter::DigestFilter(), ndn::security::transform::HexDecode::HexDecode(), ndn::security::transform::HexEncode::HexEncode(), ndn::security::transform::SignerFilter::SignerFilter(), ndn::security::transform::StripSpace::StripSpace(), and ndn::security::transform::VerifierFilter::VerifierFilter().
|
protected |
Check if output buffer is empty.
Definition at line 94 of file transform-base.cpp.
Referenced by ndn::security::transform::Base64Decode::Base64Decode(), ndn::security::transform::Base64Encode::Base64Encode(), and ndn::security::transform::BlockCipher::BlockCipher().