|
| | Block () |
| | Default constructor to create an empty Block. More...
|
| |
| | Block (const EncodingBuffer &buffer) |
| | Create block based on EncodingBuffer object. More...
|
| |
| | Block (const ConstBufferPtr &buffer) |
| | A helper version of a constructor to create Block from the raw buffer (type and value-length parsing) More...
|
| |
| | Block (const ConstBufferPtr &buffer, const Buffer::const_iterator &begin, const Buffer::const_iterator &end, bool verifyLength=true) |
| | Another helper to create block from a buffer, directly specifying boundaries of the block within the buffer. More...
|
| |
| | Block (const uint8_t *buffer, size_t maxlength) |
| | A helper version of a constructor to create Block from the raw buffer (type and value-length parsing) More...
|
| |
| | Block (const void *buffer, size_t maxlength) |
| |
| | Block (std::istream &is) |
| |
| | Block (const ConstBufferPtr &wire, uint32_t type, const Buffer::const_iterator &begin, const Buffer::const_iterator &end, const Buffer::const_iterator &valueBegin, const Buffer::const_iterator &valueEnd) |
| | Create Block from the wire buffer (no parsing) More...
|
| |
| | Block (uint32_t type) |
| | Create Block of a specific type with empty wire buffer. More...
|
| |
| | Block (uint32_t type, const ConstBufferPtr &value) |
| | Create Block of a specific type with the specified value. More...
|
| |
| | Block (uint32_t type, const Block &value) |
| | Create nested Block of a specific type with the specified value. More...
|
| |
| bool | empty () const |
| | Check if the Block is empty. More...
|
| |
| bool | hasWire () const |
| | Check if the Block has fully encoded wire. More...
|
| |
| bool | hasValue () const |
| | Check if the Block has value block (no type and length are encoded) More...
|
| |
| void | reset () |
| | Reset wire buffer of the element. More...
|
| |
| void | resetWire () |
| | Reset wire buffer but keep sub elements (if any) More...
|
| |
| void | parse () const |
| | Parse wire buffer into subblocks. More...
|
| |
| void | encode () |
| | Encode subblocks into wire buffer. More...
|
| |
| uint32_t | type () const |
| |
| const Block & | get (uint32_t type) const |
| | Get the first subelement of the requested type. More...
|
| |
| element_const_iterator | find (uint32_t type) const |
| |
| void | remove (uint32_t type) |
| |
| element_iterator | erase (element_iterator position) |
| |
| element_iterator | erase (element_iterator first, element_iterator last) |
| |
| void | push_back (const Block &element) |
| |
| Buffer::const_iterator | begin () const |
| |
| Buffer::const_iterator | end () const |
| |
| const uint8_t * | wire () const |
| |
| size_t | size () const |
| |
| Buffer::const_iterator | value_begin () const |
| |
| Buffer::const_iterator | value_end () const |
| |
| const uint8_t * | value () const |
| |
| size_t | value_size () const |
| |
| const element_container & | elements () const |
| | Get all subelements. More...
|
| |
| element_const_iterator | elements_begin () const |
| |
| element_const_iterator | elements_end () const |
| |
| size_t | elements_size () const |
| |
| Block | blockFromValue () const |
| |
| bool | operator== (const Block &other) const |
| |
| bool | operator!= (const Block &other) const |
| |
Class representing wire element of the NDN packet.
Definition at line 26 of file block.hpp.