28 #if NDN_CXX_HAVE_IS_NOTHROW_MOVE_CONSTRUCTIBLE
29 static_assert(std::is_nothrow_move_constructible<Buffer>::value,
30 "Buffer must be MoveConstructible with noexcept");
31 #endif // NDN_CXX_HAVE_IS_NOTHROW_MOVE_CONSTRUCTIBLE
33 #if NDN_CXX_HAVE_IS_NOTHROW_MOVE_ASSIGNABLE
34 static_assert(std::is_nothrow_move_assignable<Buffer>::value,
35 "Buffer must be MoveAssignable with noexcept");
36 #endif // NDN_CXX_HAVE_IS_NOTHROW_MOVE_ASSIGNABLE
43 :
std::vector<uint8_t>(size, 0)
48 :
std::vector<uint8_t>(reinterpret_cast<const uint8_t*>(buf),
49 reinterpret_cast<const uint8_t*>(buf) + length)
Copyright (c) 2013-2016 Regents of the University of California.
Buffer()
Creates an empty buffer.