26 std::make_shared<Buffer>() :
27 std::make_shared<Buffer>(size);
34 return std::make_shared<Buffer>(boost::asio::buffer(buffer));
38 return {
reinterpret_cast<const char *
>(buf.
data()), buf.
size()};
const value_type * data() const noexcept
Direct access to the allocated memory or nullptr if no memory is allocated.
static shared_buffer make(const T &buffer)
static shared_buffer make_empty(size_t size=0u)
static std::string as_string(const Buffer &buf)
This file contains definitions of common data structures used in traffic manager. ...
std::deque< std::shared_ptr< SimpleWaypoint > > Buffer
static bool operator==(const Buffer &lhs, const Buffer &rhs)
std::shared_ptr< Buffer > shared_buffer
static bool operator!=(const Buffer &lhs, const Buffer &rhs)
const_iterator end() const noexcept
const_iterator begin() const noexcept
std::shared_ptr< const Buffer > const_shared_buffer
std::string to_hex_string(const Buffer &buf, size_t length)
static std::ostream & operator<<(std::ostream &out, const Buffer &buf)
shared_buffer make_random(size_t size)
size_type size() const noexcept