14#include <boost/asio/buffer.hpp>
21#ifdef LIBCARLA_INCLUDED_FROM_UE4
23#include "Containers/Array.h"
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)();
Creating a constant view from an existing buffer
BufferView(Buffer &&rhs) noexcept
static constexpr size_type max_size() noexcept
const_iterator cend() const noexcept
size_type size() const noexcept
static std::shared_ptr< BufferView > CreateFrom(Buffer &&buffer)
const value_type * const_iterator
BufferView(const BufferView &)=delete
const value_type & operator[](size_t i) const
Access the byte at position i.
const_iterator begin() const noexcept
size_type capacity() const noexcept
boost::asio::const_buffer cbuffer() const noexcept
Make a boost::asio::buffer from this buffer.
const_iterator cbegin() const noexcept
bool empty() const noexcept
boost::asio::const_buffer buffer() const noexcept
Make a boost::asio::buffer from this buffer.
const value_type * data() const noexcept
Direct access to the allocated memory or nullptr if no memory is allocated.
const_iterator end() const noexcept
const value_type * data() const noexcept
Direct access to the allocated memory or nullptr if no memory is allocated.
size_type size() const noexcept
const_iterator cend() const noexcept
size_type capacity() const noexcept
const_iterator cbegin() const noexcept
This file contains definitions of common data structures used in traffic manager.
std::shared_ptr< BufferView > SharedBufferView