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

A source taking one or more memory buffers as input. More...

#include <buffer-source.hpp>

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

Public Member Functions

 BufferSource (span< const uint8_t > buffer)
 Take buffer as input. More...
 
 BufferSource (const std::string &string)
 Take string as input. More...
 
 BufferSource (InputBuffers buffers)
 Take buffers as input. More...
 
- Public Member Functions inherited from ndn::security::transform::Source
Sourceoperator>> (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 ()=default
 
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 ()=default
 
void appendChain (unique_ptr< Downstream > tail)
 Connect to the next transformation module. More...
 
DownstreamgetNext ()
 
- Protected Attributes inherited from ndn::security::transform::Upstream
unique_ptr< Downstreamm_next
 

Detailed Description

A source taking one or more memory buffers as input.

Definition at line 36 of file buffer-source.hpp.

Constructor & Destructor Documentation

◆ BufferSource() [1/3]

ndn::security::transform::BufferSource::BufferSource ( span< const uint8_t >  buffer)
explicit

Take buffer as input.

Caller must not destroy the buffer before the transformation is completed.

Definition at line 28 of file buffer-source.cpp.

◆ BufferSource() [2/3]

ndn::security::transform::BufferSource::BufferSource ( const std::string &  string)
explicit

Take string as input.

Caller must not destroy the string before the transformation is completed.

Definition at line 33 of file buffer-source.cpp.

References nonstd::span_lite::size().

◆ BufferSource() [3/3]

ndn::security::transform::BufferSource::BufferSource ( InputBuffers  buffers)
explicit

Take buffers as input.

Caller must not destroy any of the input buffers before the transformation is completed.

Definition at line 38 of file buffer-source.cpp.

References ndn::security::transform::Upstream::m_next.


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