Get a pointer to the beginning of the memory range.
| 295 | |
| 296 | /// Get a pointer to the beginning of the memory range. |
| 297 | const void* data() const noexcept |
| 298 | { |
| 299 | #if defined(BOOST_ASIO_ENABLE_BUFFER_DEBUGGING) |
| 300 | if (size_ && debug_check_) |
| 301 | debug_check_(); |
| 302 | #endif // BOOST_ASIO_ENABLE_BUFFER_DEBUGGING |
| 303 | return data_; |
| 304 | } |
| 305 | |
| 306 | /// Get the size of the memory range. |
| 307 | std::size_t size() const noexcept |