| static DataSetDims anonymous_namespace{h5md_dataset.cpp}::getFrameChunkOffset |
( |
const hid_t |
dataSet, |
|
|
const hsize_t |
frameIndex |
|
) |
| |
|
static |
Return the per-dimension offset to the data corresponding to a given frame.
Since frames are always the major axis the first value of the returned offset is the given frame index. We are only considering the case when all data for that frame is selected, so the offset for all other axis is 0. For example, to reach frame 15 of a 3d set we use the offset [15, 0, 0] to access the memory.
- Parameters
-
| [in] | dataSet | Handle to data set. |
| [in] | frameIndex | Index of frame. |
- Returns
- Fixed-size array with the offset.