24 #ifndef NDN_ENCODING_BUFFER_HPP 25 #define NDN_ENCODING_BUFFER_HPP 27 #include "../common.hpp" 40 class Buffer :
public std::vector<uint8_t>
57 Buffer(
const void* buf,
size_t length);
63 template<
class InputIt>
65 :
std::vector<uint8_t>(first, last)
75 return reinterpret_cast<T*
>(data());
84 return reinterpret_cast<const T*
>(data());
93 #endif // NDN_ENCODING_BUFFER_HPP Copyright (c) 2013-2017 Regents of the University of California.
Buffer()
Creates an empty Buffer.
Buffer(InputIt first, InputIt last)
Creates a Buffer by copying the elements of the range [first, last)
General-purpose automatically managed/resized buffer.
shared_ptr< Buffer > BufferPtr
shared_ptr< const Buffer > ConstBufferPtr