Realistic 3D camera system
3D camera system components
|
The asio::buffer_cast function is used to obtain a pointer to the underlying memory region associated with a buffer. More...
Functions | |
template<typename PointerToPodType > | |
PointerToPodType | asio::buffer_cast (const mutable_buffer &b) |
Cast a non-modifiable buffer to a specified pointer to POD type. More... | |
template<typename PointerToPodType > | |
PointerToPodType | asio::buffer_cast (const const_buffer &b) |
Cast a non-modifiable buffer to a specified pointer to POD type. More... | |
The asio::buffer_cast function is used to obtain a pointer to the underlying memory region associated with a buffer.
To access the memory of a non-modifiable buffer, use:
To access the memory of a modifiable buffer, use:
The asio::buffer_cast function permits violations of type safety, so uses of it in application code should be carefully considered.
|
inline |
Cast a non-modifiable buffer to a specified pointer to POD type.
Definition at line 424 of file buffer.hpp.
|
inline |
Cast a non-modifiable buffer to a specified pointer to POD type.
Definition at line 431 of file buffer.hpp.