24 #ifndef NDN_ENCODING_BUFFER_HPP    25 #define NDN_ENCODING_BUFFER_HPP    40 class Buffer : 
public std::vector<uint8_t>
    70     : 
std::vector<uint8_t>(size, 0)
    79     : 
std::vector<uint8_t>(reinterpret_cast<const uint8_t*>(buf),
    80                            reinterpret_cast<const uint8_t*>(buf) + length)
    88   template<
class InputIt>
    90     : 
std::vector<uint8_t>(first, last)
   100     return reinterpret_cast<T*
>(data());
   109     return reinterpret_cast<const T*
>(data());
   130 #endif // NDN_ENCODING_BUFFER_HPP 
Buffer(const void *buf, size_t length)
Creates a Buffer by copying contents from a raw buffer. 
Buffer & operator=(const Buffer &)
Copy assignment operator. 
Buffer(InputIt first, InputIt last)
Creates a Buffer by copying the elements of the range [first, last) 
Buffer()=default
Creates an empty Buffer. 
Common includes and macros used throughout the library. 
Buffer(size_t size)
Creates a Buffer with pre-allocated size. 
General-purpose automatically managed/resized buffer. 
shared_ptr< Buffer > BufferPtr
shared_ptr< const Buffer > ConstBufferPtr