NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
io.cpp File Reference
Include dependency graph for io.cpp:

Go to the source code of this file.


 Copyright (c) 2011-2015 Regents of the University of California.


shared_ptr< Buffer > ndn::io::loadBuffer (std::istream &is, IoEncoding encoding=BASE64)
 Reads bytes from a stream until EOF. More...
optional< Block > ndn::io::loadBlock (std::istream &is, IoEncoding encoding=BASE64)
 Reads a TLV block from a stream. More...
void ndn::io::saveBuffer (const uint8_t *buf, size_t size, std::ostream &os, IoEncoding encoding=BASE64)
 Writes a byte buffer to a stream. More...
void ndn::io::saveBlock (const Block &block, std::ostream &os, IoEncoding encoding=BASE64)
 Writes a TLV block to a stream. More...