| 278 | /// Otherwise, an assertion may be thrown or a null pointer may be returned. |
| 279 | template <typename T> |
| 280 | const T* data_as() const { |
| 281 | return reinterpret_cast<const T*>(data()); |
| 282 | } |
| 283 | |
| 284 | /// \brief Return the buffer's data as a span |
| 285 | template <typename T> |