24 #ifndef NDN_ENCODING_BUFFER_HPP
25 #define NDN_ENCODING_BUFFER_HPP
27 #include "../common.hpp"
44 class Buffer :
public std::vector<uint8_t>
68 template <
class InputIterator>
69 Buffer(InputIterator first, InputIterator last)
70 :
std::vector<uint8_t>(first, last)
99 return reinterpret_cast<T*
>(&front());
127 return reinterpret_cast<const T*
>(&front());
133 #endif // NDN_ENCODING_BUFFER_HPP
Copyright (c) 2013-2016 Regents of the University of California.
Buffer()
Creates an empty buffer.
shared_ptr< Buffer > BufferPtr
const uint8_t * buf() const
Buffer(InputIterator first, InputIterator last)
Create a buffer by copying contents of the range [first, last)
shared_ptr< const Buffer > ConstBufferPtr
Class representing a general-use automatically managed/resized buffer.