NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::security::transform::StreamSink Class Reference

A sink which directs output to an std::ostream. More...

#include <stream-sink.hpp>

Inheritance diagram for ndn::security::transform::StreamSink:
Collaboration diagram for ndn::security::transform::StreamSink:

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 ()
 

Detailed Description

A sink which directs output to an std::ostream.

Definition at line 35 of file stream-sink.hpp.

Constructor & Destructor Documentation

◆ StreamSink()

ndn::security::transform::StreamSink::StreamSink ( std::ostream &  os)
explicit

Create a stream sink which outputs to os.

Definition at line 28 of file stream-sink.cpp.

References ndn::security::transform::Downstream::getIndex().


The documentation for this class was generated from the following files: