implements an output stream that constructs ndn::Buffer
More...
#include <buffer-stream.hpp>
Public Member Functions | |
OBufferStream () | |
~OBufferStream () | |
shared_ptr< Buffer > | buf () |
Flush written data to the stream and return shared pointer to the underlying buffer. More... | |
implements an output stream that constructs ndn::Buffer
The benefit of using stream interface is that it provides automatic buffering of written data and eliminates (or reduces) overhead of resizing the underlying buffer when writing small pieces of data.
Usage example:
Definition at line 70 of file buffer-stream.hpp.
ndn::OBufferStream::OBufferStream | ( | ) |
Definition at line 41 of file buffer-stream.cpp.
References websocketpp::session::state::open.
ndn::OBufferStream::~OBufferStream | ( | ) |
Definition at line 48 of file buffer-stream.cpp.
References close().
shared_ptr< Buffer > ndn::OBufferStream::buf | ( | ) |
Flush written data to the stream and return shared pointer to the underlying buffer.
Definition at line 54 of file buffer-stream.cpp.
Referenced by ndn::security::tpm::BackEnd::constructAsymmetricKeyName(), ndn::security::tpm::BackEndOsx::derivePublicKey(), ndn::fromHex(), ndn::security::transform::PrivateKey::getKeyDigest(), ndn::security::tpm::BackEndMem::getScheme(), ndn::security::tpm::BackEndFile::getScheme(), ndn::Interest::isParametersDigestValid(), ndn::security::tpm::KeyHandleMem::KeyHandleMem(), ndn::io::loadBuffer(), ndn::security::transform::PrivateKey::loadPkcs1(), ndn::security::transform::PrivateKey::loadPkcs1Base64(), ndn::security::transform::PublicKey::loadPkcs8(), ndn::security::transform::PrivateKey::loadPkcs8(), ndn::security::transform::PublicKey::loadPkcs8Base64(), ndn::security::transform::PrivateKey::loadPkcs8Base64(), ndn::operator""_block(), ndn::security::v2::parseLocatorUri(), ndn::security::SigningInfo::setSigningHmacKey(), ndn::util::SegmentFetcher::stop(), and ndn::security::verifyDigest().