Realistic 3D camera system
3D camera system components
|
Holds a buffer that cannot be modified. More...
#include <buffer.hpp>
Public Member Functions | |
const_buffer () | |
Construct an empty buffer. More... | |
const_buffer (const void *data, std::size_t size) | |
Construct a buffer to represent a given memory range. More... | |
const_buffer (const mutable_buffer &b) | |
Construct a non-modifiable buffer from a modifiable one. More... | |
Friends | |
const void * | asio::detail::buffer_cast_helper (const const_buffer &b) |
std::size_t | asio::detail::buffer_size_helper (const const_buffer &b) |
Related Functions | |
(Note that these are not member functions.) | |
const_buffer | operator+ (const const_buffer &b, std::size_t start) |
Create a new non-modifiable buffer that is offset from the start of another. More... | |
const_buffer | operator+ (std::size_t start, const const_buffer &b) |
Create a new non-modifiable buffer that is offset from the start of another. More... | |
Holds a buffer that cannot be modified.
The const_buffer class provides a safe representation of a buffer that cannot be modified. It does not own the underlying data, and so is cheap to copy or assign.
The contents of a buffer may be accessed using the asio::buffer_size and asio::buffer_cast functions:
The asio::buffer_cast function permits violations of type safety, so uses of it in application code should be carefully considered.
Definition at line 211 of file buffer.hpp.
|
inline |
Construct an empty buffer.
Definition at line 215 of file buffer.hpp.
|
inline |
Construct a buffer to represent a given memory range.
Definition at line 222 of file buffer.hpp.
|
inline |
Construct a non-modifiable buffer from a modifiable one.
Definition at line 229 of file buffer.hpp.
|
friend |
|
friend |
|
related |
Create a new non-modifiable buffer that is offset from the start of another.
Definition at line 476 of file buffer.hpp.
|
related |
Create a new non-modifiable buffer that is offset from the start of another.
Definition at line 493 of file buffer.hpp.