A source taking a memory buffer as input. More...
#include <buffer-source.hpp>
Public Member Functions | |
BufferSource (const uint8_t *buf, size_t size) | |
Take a buffer buf with size of size as input. More... | |
BufferSource (const std::string &string) | |
Take string as input. More... | |
BufferSource (const Buffer &buffer) | |
Take buffer as input. More... | |
Public Member Functions inherited from ndn::security::transform::Source | |
Source & | operator>> (unique_ptr< Transform > transform) |
Connect to an intermediate transformation module. More... | |
void | operator>> (unique_ptr< Sink > sink) |
Connect to the last transformation module. More... | |
Public Member Functions inherited from ndn::security::transform::Upstream | |
virtual | ~Upstream ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from ndn::security::transform::Source | |
Source () | |
void | pump () |
Pump all data into next transformation module. More... | |
size_t | getIndex () const |
Get the source module index (should always be 0). More... | |
Protected Member Functions inherited from ndn::security::transform::Upstream | |
Upstream () | |
void | appendChain (unique_ptr< Downstream > tail) |
connect to next transformation module More... | |
Downstream * | getNext () |
Protected Attributes inherited from ndn::security::transform::Upstream | |
unique_ptr< Downstream > | m_next |
A source taking a memory buffer as input.
Definition at line 35 of file buffer-source.hpp.
ndn::security::transform::BufferSource::BufferSource | ( | const uint8_t * | buf, |
size_t | size | ||
) |
Take a buffer buf
with size of size
as input.
Caller must not destroy the buffer before transformation is done
Definition at line 28 of file buffer-source.cpp.
|
explicit |
Take string
as input.
Caller must not destroy the string before transformation is done
Definition at line 34 of file buffer-source.cpp.
|
explicit |
Take buffer
as input.
Caller must not destroy the buffer before transformation is done
Definition at line 40 of file buffer-source.cpp.
References ndn::security::transform::Upstream::m_next.