22 #ifndef NDN_KEY_LOCATOR_HPP 23 #define NDN_KEY_LOCATOR_HPP 73 template<encoding::Tag TAG>
158 mutable Block m_wire;
168 #endif // NDN_KEY_LOCATOR_HPP
std::ostream & operator<<(std::ostream &os, const Data &data)
KeyLocator & setName(const Name &name)
set Name element
void wireDecode(const Block &wire)
decode from wire encoding
KeyLocator & setKeyDigest(const Block &keyDigest)
set KeyDigest element
Represents a TLV element of NDN packet format.
KeyLocator()
construct an empty KeyLocator
indicates KeyLocator contains a Name
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
const Name & getName() const
get Name element
const Block & getKeyDigest() const
get KeyDigest element
indicates KeyLocator is empty (internal use only)
Represents an absolute name.
indicates KeyLocator contains an unknown element
KeyLocator & clear()
clear KeyLocator
const Block & wireEncode() const
indicates KeyLocator contains a KeyDigest
bool operator==(const KeyLocator &other) const
bool operator!=(const KeyLocator &other) const
Error(const char *expectedType, uint32_t actualType)
represents an error in TLV encoding or decoding
shared_ptr< const Buffer > ConstBufferPtr