| 77 | } |
| 78 | |
| 79 | nd::array get(int64_t index) const |
| 80 | { |
| 81 | ASSERT(header_ != nullptr); |
| 82 | auto buffer = data_.chunk(header_->offsets_[index] + header_->data_offset_, |
| 83 | header_->offsets_[index + 1] + header_->data_offset_); |
| 84 | return header_->get(buffer, dtype_, index); |
| 85 | } |
| 86 | |
| 87 | icm::shape shape() const noexcept |
| 88 | { |