| 250 | /// by the caller. |
| 251 | template <typename T> |
| 252 | inline const T* GetValues(int i, int64_t absolute_offset) const { |
| 253 | if (buffers[i]) { |
| 254 | return reinterpret_cast<const T*>(buffers[i]->data()) + absolute_offset; |
| 255 | } else { |
| 256 | return NULLPTR; |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | /// \brief Access a buffer's data as a typed C pointer |
| 261 | /// |