diff options
Diffstat (limited to 'src/H5Sall.c')
-rw-r--r-- | src/H5Sall.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/H5Sall.c b/src/H5Sall.c index c216323..5d01fec 100644 --- a/src/H5Sall.c +++ b/src/H5Sall.c @@ -45,6 +45,7 @@ static herr_t H5S_all_bounds(const H5S_t *space, hsize_t *start, hsize_t *end); static htri_t H5S_all_is_contiguous(const H5S_t *space); static htri_t H5S_all_is_single(const H5S_t *space); static htri_t H5S_all_is_regular(const H5S_t *space); +static herr_t H5S_all_adjust_u(H5S_t *space, const hsize_t *offset); static herr_t H5S_all_iter_init(H5S_sel_iter_t *iter, const H5S_t *space); /* Selection iteration callbacks */ @@ -72,6 +73,7 @@ const H5S_select_class_t H5S_sel_all[1] = {{ H5S_all_is_contiguous, H5S_all_is_single, H5S_all_is_regular, + H5S_all_adjust_u, H5S_all_iter_init, }}; @@ -696,6 +698,37 @@ H5S_all_is_regular(const H5S_t UNUSED *space) /*-------------------------------------------------------------------------- NAME + H5S_all_adjust_u + PURPOSE + Adjust an "all" selection by subtracting an offset + USAGE + herr_t H5S_all_adjust_u(space, offset) + H5S_t *space; IN/OUT: Pointer to dataspace to adjust + const hsize_t *offset; IN: Offset to subtract + RETURNS + Non-negative on success, negative on failure + DESCRIPTION + Moves selection by subtracting an offset from it. + GLOBAL VARIABLES + COMMENTS, BUGS, ASSUMPTIONS + EXAMPLES + REVISION LOG +--------------------------------------------------------------------------*/ +herr_t +H5S_all_adjust_u(H5S_t UNUSED *space, const hsize_t UNUSED *offset) +{ + FUNC_ENTER_NOAPI_NOFUNC(H5S_all_adjust_u) + + /* Check args */ + HDassert(space); + HDassert(offset); + + FUNC_LEAVE_NOAPI(SUCCEED) +} /* H5S_all_adjust_u() */ + + +/*-------------------------------------------------------------------------- + NAME H5S_select_all PURPOSE Specify the the entire extent is selected |