23 #include "../../encoding/tlv-security.hpp"
24 #include "../../util/concepts.hpp"
33 static_assert(std::is_base_of<tlv::Error, SecuredBag::Error>::value,
34 "SecuredBag::Error must inherit from tlv::Error");
70 shared_ptr<Buffer> key = make_shared<Buffer>(wireKey.
value(), wireKey.
value_size());
Copyright (c) 2013-2016 Regents of the University of California.
Class representing a wire element of NDN-TLV packet format.
void wireDecode(const Block &wire)
size_t wireEncode(EncodingImpl< TAG > &encoder, bool wantUnsignedPortionOnly=false) const
Fast encoding or block size estimation.
void wireDecode(const Block &wire)
Block blockFromValue() const
const Block & get(uint32_t type) const
Get the first subelement of the requested type.
void push_back(const Block &element)
size_t value_size() const
void parse() const
Parse wire buffer into subblocks.
void encode()
Encode subblocks into wire buffer.
const uint8_t * value() const
const Block & wireEncode() const
shared_ptr< const Buffer > ConstBufferPtr
a concept check for TLV abstraction with .wireEncode method
a concept check for TLV abstraction with .wireDecode method and constructible from Block ...