| 275 | } |
| 276 | |
| 277 | void copy_data(std::span<uint8_t> buffer) const |
| 278 | { |
| 279 | auto current_offset = 0L; |
| 280 | for (const auto& a : a_) { |
| 281 | auto vol = a.volume() * sizeof(T); |
| 282 | auto sp = std::span<uint8_t>(buffer.data() + current_offset, vol); |
| 283 | nd::copy_data(a, base::span_cast<uint8_t>(sp)); |
| 284 | current_offset += vol; |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | uint8_t dimensions() const |
| 289 | { |