55   catch (
const std::runtime_error& e) {
 
   80   catch (
const std::runtime_error& e) {
 
implements an output stream that constructs ndn::Buffer
 
shared_ptr< Buffer > buf()
Flush written data to the stream and return shared pointer to the underlying buffer.
 
#define NDN_THROW_NESTED(e)
 
std::string to_string(const errinfo_stacktrace &x)
 
void saveBuffer(span< const uint8_t > buf, std::ostream &os, IoEncoding encoding)
Writes a sequence of bytes to a stream.
 
IoEncoding
Indicates how a file or stream of bytes is encoded.
 
@ NO_ENCODING
Raw binary, without encoding.
 
@ HEX
Hexadecimal encoding.
 
shared_ptr< Buffer > loadBuffer(std::istream &is, IoEncoding encoding)
Reads bytes from a stream until EOF.