35template<encoding::Tag TAG>
39 size_t totalLength = 0;
41 totalLength += encoder.prependVarNumber(totalLength);
54 EncodingEstimator estimator;
57 EncodingBuffer buffer(estimatedSize, 0);
60 m_wire = buffer.block();
76 m_localUri = readString(*val);
88 m_localUri = localUri;
101 return os <<
"Channel(LocalUri: " << status.
getLocalUri() <<
")";
Represents a TLV element of the NDN packet format.
element_const_iterator elements_begin() const noexcept
Equivalent to elements().begin().
element_const_iterator elements_end() const noexcept
Equivalent to elements().end().
bool hasWire() const noexcept
Check if the Block contains a fully encoded wire representation.
uint32_t type() const noexcept
Return the TLV-TYPE of the Block.
void reset() noexcept
Reset the Block to a default-constructed state.
void parse() const
Parse TLV-VALUE into sub-elements.
Represents an item in NFD Channel dataset.
ChannelStatus & setLocalUri(const std::string &localUri)
const std::string & getLocalUri() const
void wireDecode(const Block &wire)
const Block & wireEncode() const
#define NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
Contains classes and functions related to the NFD Management protocol.
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
bool operator==(const ChannelStatus &a, const ChannelStatus &b)