| 284 | /// \brief Return the buffer's data as a span |
| 285 | template <typename T> |
| 286 | std::span<const T> span_as() const { |
| 287 | return std::span(data_as<T>(), static_cast<size_t>(size() / sizeof(T))); |
| 288 | } |
| 289 | |
| 290 | /// \brief Return a writable pointer to the buffer's data |
| 291 | /// |