| Namespaces | |
| detail | |
| Classes | |
| class | Error | 
| Enumerations | |
| enum | IoEncoding { NO_ENCODING, BASE64, HEX } | 
| Indicates how a file or stream of bytes is encoded.  More... | |
| Functions | |
| template<typename T > | |
| shared_ptr< T > | load (std::istream &is, IoEncoding encoding=BASE64) | 
| Reads a TLV element from a stream.  More... | |
| template<typename T > | |
| shared_ptr< T > | load (const std::string &filename, IoEncoding encoding=BASE64) | 
| Reads a TLV element from a file.  More... | |
| optional< Block > | loadBlock (std::istream &is, IoEncoding encoding=BASE64) | 
| Reads a TLV block from a stream.  More... | |
| shared_ptr< Buffer > | loadBuffer (std::istream &is, IoEncoding encoding=BASE64) | 
| Reads bytes from a stream until EOF.  More... | |
| template<typename T > | |
| void | save (const T &obj, std::ostream &os, IoEncoding encoding=BASE64) | 
| Writes a TLV element to a stream.  More... | |
| template<typename T > | |
| void | save (const T &obj, const std::string &filename, IoEncoding encoding=BASE64) | 
| Writes a TLV element to a file.  More... | |
| void | saveBlock (const Block &block, std::ostream &os, IoEncoding encoding=BASE64) | 
| Writes a TLV block to a stream.  More... | |
| void | saveBuffer (const uint8_t *buf, size_t size, std::ostream &os, IoEncoding encoding=BASE64) | 
| Writes a byte buffer to a stream.  More... | |
| enum ndn::io::IoEncoding | 
Indicates how a file or stream of bytes is encoded.
| Enumerator | |
|---|---|
| NO_ENCODING | Raw binary, without encoding. | 
| BASE64 | Base64 encoding. 
 | 
| HEX | Hexadecimal encoding. 
 | 
| shared_ptr<T> ndn::io::load | ( | std::istream & | is, | 
| IoEncoding | encoding = BASE64 | ||
| ) | 
Reads a TLV element from a stream.
| T | type of TLV element; Tmust be WireDecodable and the nested typeT::Error, if defined, must be a subclass of ndn::tlv::Error | 
| shared_ptr<T> ndn::io::load | ( | const std::string & | filename, | 
| IoEncoding | encoding = BASE64 | ||
| ) | 
Reads a TLV element from a file.
| T | type of TLV element; Tmust be WireDecodable and the nested typeT::Error, if defined, must be a subclass of ndn::tlv::Error | 
| optional< Block > ndn::io::loadBlock | ( | std::istream & | is, | 
| IoEncoding | encoding = BASE64 | ||
| ) | 
| shared_ptr< Buffer > ndn::io::loadBuffer | ( | std::istream & | is, | 
| IoEncoding | encoding = BASE64 | ||
| ) | 
| void ndn::io::save | ( | const T & | obj, | 
| std::ostream & | os, | ||
| IoEncoding | encoding = BASE64 | ||
| ) | 
Writes a TLV element to a stream.
| T | type of TLV element; Tmust be WireEncodable and the nested typeT::Error, if defined, must be a subclass of ndn::tlv::Error | 
| Error | error during encoding or saving | 
| std::invalid_argument | the specified encoding is not supported | 
| void ndn::io::save | ( | const T & | obj, | 
| const std::string & | filename, | ||
| IoEncoding | encoding = BASE64 | ||
| ) | 
Writes a TLV element to a file.
| T | type of TLV element; Tmust be WireEncodable and the nested typeT::Error, if defined, must be a subclass of ndn::tlv::Error | 
| Error | error during encoding or saving | 
| std::invalid_argument | the specified encoding is not supported | 
| void ndn::io::saveBlock | ( | const Block & | block, | 
| std::ostream & | os, | ||
| IoEncoding | encoding = BASE64 | ||
| ) | 
| void ndn::io::saveBuffer | ( | const uint8_t * | buf, | 
| size_t | size, | ||
| std::ostream & | os, | ||
| IoEncoding | encoding = BASE64 | ||
| ) |