A sink which directs output to an std::ostream. More...
#include <stream-sink.hpp>
Public Member Functions | |
StreamSink (std::ostream &os) | |
Create a stream sink which outputs to os . More... | |
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 Member Functions inherited from ndn::security::transform::Downstream | |
Downstream () | |
A sink which directs output to an std::ostream.
Definition at line 35 of file stream-sink.hpp.
|
explicit |
Create a stream sink which outputs to os
.
Definition at line 28 of file stream-sink.cpp.
References ndn::security::transform::Downstream::getIndex().