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

(implementation detail) a Boost.Iostreams.Sink which appends to an ndn::Buffer More...

#include <buffer-stream.hpp>

Collaboration diagram for ndn::detail::BufferAppendDevice:

Public Types

typedef char char_type
 
typedef boost::iostreams::sink_tag category
 

Public Member Functions

 BufferAppendDevice (Buffer &container)
 
std::streamsize write (const char_type *s, std::streamsize n)
 

Protected Attributes

Bufferm_container
 

Detailed Description

(implementation detail) a Boost.Iostreams.Sink which appends to an ndn::Buffer

Definition at line 38 of file buffer-stream.hpp.

Member Typedef Documentation

◆ char_type

Definition at line 41 of file buffer-stream.hpp.

◆ category

typedef boost::iostreams::sink_tag ndn::detail::BufferAppendDevice::category

Definition at line 42 of file buffer-stream.hpp.

Constructor & Destructor Documentation

◆ BufferAppendDevice()

ndn::detail::BufferAppendDevice::BufferAppendDevice ( Buffer container)
explicit

Definition at line 27 of file buffer-stream.cpp.

Member Function Documentation

◆ write()

std::streamsize ndn::detail::BufferAppendDevice::write ( const char_type s,
std::streamsize  n 
)

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

References m_container.

Member Data Documentation

◆ m_container

Buffer& ndn::detail::BufferAppendDevice::m_container
protected

Definition at line 51 of file buffer-stream.hpp.

Referenced by write().


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