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 (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... | |
Additional Inherited Members | |
Protected Member Functions inherited from ndn::security::transform::Downstream | |
Downstream ()=default | |
A sink which directs output to an std::ostream.
Definition at line 34 of file stream-sink.hpp.
|
explicit |
Create a stream sink which outputs to os
.
Definition at line 30 of file stream-sink.cpp.
References ndn::security::transform::Downstream::getIndex(), and NDN_THROW.