24 #ifndef NDN_ENCODING_BLOCK_HPP 25 #define NDN_ENCODING_BLOCK_HPP 27 #include "../common.hpp" 81 const Buffer::const_iterator& begin,
const Buffer::const_iterator& end,
82 bool verifyLength =
true);
90 const Buffer::const_iterator& begin,
const Buffer::const_iterator& end,
91 bool verifyLength =
true);
95 Block(
const uint8_t* buffer,
size_t maxlength);
99 Block(
const void* buffer,
size_t maxlength);
107 const Buffer::const_iterator& begin,
const Buffer::const_iterator& end,
108 const Buffer::const_iterator& valueBegin,
const Buffer::const_iterator& valueEnd);
113 Block(uint32_t type);
134 fromStream(std::istream& is);
147 static std::tuple<bool, Block>
160 static std::tuple<bool, Block>
161 fromBuffer(
const uint8_t* buffer,
size_t maxSize);
184 Buffer::const_iterator
187 Buffer::const_iterator
205 Buffer::const_iterator
208 Buffer::const_iterator
234 get(uint32_t type)
const;
236 element_const_iterator
237 find(uint32_t type)
const;
245 remove(uint32_t type);
248 erase(element_const_iterator position);
251 erase(element_const_iterator first, element_const_iterator last);
254 push_back(
const Block& element);
263 insert(element_const_iterator pos,
const Block& element);
267 const element_container&
270 element_const_iterator
271 elements_begin()
const;
273 element_const_iterator
274 elements_end()
const;
277 elements_size()
const;
280 blockFromValue()
const;
285 shared_ptr<const Buffer>
296 operator boost::asio::const_buffer()
const;
317 inline shared_ptr<const Buffer>
318 Block::getBuffer()
const 329 inline Buffer::const_iterator
330 Block::value_begin()
const 332 return m_value_begin;
335 inline Buffer::const_iterator
336 Block::value_end()
const 342 Block::elements()
const 349 #endif // NDN_ENCODING_BLOCK_HPP
shared_ptr< const Buffer > m_buffer
Copyright (c) 2011-2015 Regents of the University of California.
Error(const std::string &what)
Copyright (c) 2013-2016 Regents of the University of California.
Buffer::const_iterator m_begin
element_container::iterator element_iterator
Class representing a wire element of NDN-TLV packet format.
Table::const_iterator iterator
Buffer::const_iterator m_value_end
EncodingImpl< EncoderTag > EncodingBuffer
element_container::const_iterator element_const_iterator
std::vector< Block > element_container
bool operator!=(const GlobalRouter::Incidency &a, const GlobalRouter::Incidency &b)
element_container m_subBlocks
Buffer::const_iterator m_end
Buffer::const_iterator m_value_begin
shared_ptr< const Buffer > ConstBufferPtr
represents an error in TLV encoding or decoding
bool operator==(const GlobalRouter::Incidency &a, const GlobalRouter::Incidency &b)