14 #include <boost/asio/buffer.hpp> 19 #include <type_traits> 21 #ifdef LIBCARLA_INCLUDED_FROM_UE4 23 #include "Containers/Array.h" 25 #endif // LIBCARLA_INCLUDED_FROM_UE4 32 class BufferView :
public std::enable_shared_from_this<BufferView> {
89 boost::asio::const_buffer
cbuffer() const noexcept {
94 boost::asio::const_buffer
buffer() const noexcept {
115 return (std::numeric_limits<size_type>::max)();
const value_type * data() const noexcept
Direct access to the allocated memory or nullptr if no memory is allocated.
const value_type & operator[](size_t i) const
Access the byte at position i.
Creating a constant view from an existing buffer.
const_iterator begin() const noexcept
This file contains definitions of common data structures used in traffic manager. ...
const value_type * data() const noexcept
Direct access to the allocated memory or nullptr if no memory is allocated.
static constexpr size_type max_size() noexcept
boost::asio::const_buffer cbuffer() const noexcept
Make a boost::asio::buffer from this buffer.
static std::shared_ptr< BufferView > CreateFrom(Buffer &&buffer)
size_type size() const noexcept
const_iterator cend() const noexcept
const_iterator cend() const noexcept
const_iterator cbegin() const noexcept
size_type capacity() const noexcept
const_iterator cbegin() const noexcept
boost::asio::const_buffer buffer() const noexcept
Make a boost::asio::buffer from this buffer.
const_iterator end() const noexcept
bool empty() const noexcept
std::shared_ptr< BufferView > SharedBufferView
BufferView(Buffer &&rhs) noexcept
size_type size() const noexcept
const value_type * const_iterator
size_type capacity() const noexcept