28 static_assert(std::is_base_of<tlv::Error, MetadataObject::Error>::value,
 
   29               "MetadataObject::Error must inherit from tlv::Error");
 
   56                          optional<uint64_t> version,
 
   61                     " is not a valid discovery Interest name"));
 
   66   Data data(discoveryInterestName);
 
   69   keyChain.sign(data, si);
 
   77   m_versionedName = name;
 
   92          name[-2].isVersion() && name[-1].isSegment();
 
  100          .setMustBeFresh(
true);
 
void parse() const
Parse TLV-VALUE into sub-elements.
 
const Block & get(uint32_t type) const
Return the first sub-element of the specified TLV-TYPE.
 
size_t value_size() const noexcept
Return the size of TLV-VALUE, aka TLV-LENGTH.
 
Represents a Data packet.
 
Data & setContent(const Block &block)
Set Content from a Block.
 
Data & setFreshnessPeriod(time::milliseconds freshnessPeriod)
 
const Name & getName() const noexcept
Get name.
 
uint32_t getContentType() const
 
const Block & getContent() const noexcept
Get the Content element.
 
Represents an Interest packet.
 
Represents an absolute name.
 
bool empty() const
Checks if the name is empty, i.e.
 
Name & appendSegment(uint64_t segmentNo)
Append a segment number (sequential) component.
 
Name & appendVersion(const optional< uint64_t > &version=nullopt)
Append a version component.
 
Name & append(const Component &component)
Append a component.
 
size_t wireEncode(EncodingImpl< TAG > &encoder) const
Fast encoding or block size estimation.
 
size_t size() const
Returns the number of components.
 
void toUri(std::ostream &os, name::UriFormat format=name::UriFormat::DEFAULT) const
Write URI representation of the name to the output stream.
 
void wireDecode(const Block &wire)
Decode name from wire encoding.
 
Represents a name component.
 
Signing parameters passed to KeyChain.
 
std::string to_string(const errinfo_stacktrace &x)
 
boost::chrono::milliseconds milliseconds
 
@ ContentType_Blob
payload