mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[svn-r201] Changed H5Pget/set_hyperslab to final consensus types: int for offset and
size_t for count & stride.
This commit is contained in:
parent
fa5fd6a800
commit
7e7e5513e1
10
src/H5P.c
10
src/H5P.c
@ -937,7 +937,7 @@ H5Pset_space(hid_t sid, int rank, const size_t *dims)
|
||||
USAGE
|
||||
herr_t H5Pset_hyperslab(sid, start, count, stride)
|
||||
hid_t sid; IN: Dataspace object to select hyperslab from
|
||||
const size_t *start; IN: Starting location for hyperslab to select
|
||||
const int *start; IN: Starting location for hyperslab to select
|
||||
const size_t *count; IN: Number of elements in hyperslab
|
||||
const size_t *stride; IN: Packing of elements in hyperslab
|
||||
RETURNS
|
||||
@ -952,7 +952,7 @@ H5Pset_space(hid_t sid, int rank, const size_t *dims)
|
||||
datasets which extend in arbitrary directions.
|
||||
--------------------------------------------------------------------------*/
|
||||
herr_t
|
||||
H5Pset_hyperslab(hid_t sid, const intn *start, const intn *count, const intn *stride)
|
||||
H5Pset_hyperslab(hid_t sid, const int *start, const size_t *count, const size_t *stride)
|
||||
{
|
||||
H5P_t *space = NULL; /* dataspace to modify */
|
||||
intn *tmp_stride=NULL; /* temp. copy of stride */
|
||||
@ -1037,8 +1037,8 @@ done:
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
int
|
||||
H5Pget_hyperslab (hid_t sid, int offset[]/*out*/, int size[]/*out*/,
|
||||
int stride[]/*out*/)
|
||||
H5Pget_hyperslab (hid_t sid, int offset[]/*out*/, size_t size[]/*out*/,
|
||||
size_t stride[]/*out*/)
|
||||
{
|
||||
const H5P_t *ds = NULL;
|
||||
intn ret_value = FAIL;
|
||||
@ -1079,7 +1079,7 @@ H5Pget_hyperslab (hid_t sid, int offset[]/*out*/, int size[]/*out*/,
|
||||
*/
|
||||
intn
|
||||
H5P_get_hyperslab (const H5P_t *ds, int offset[]/*out*/,
|
||||
int size[]/*out*/, int stride[]/*out*/)
|
||||
size_t size[]/*out*/, size_t stride[]/*out*/)
|
||||
{
|
||||
intn i;
|
||||
intn ret_value = FAIL;
|
||||
|
@ -43,10 +43,10 @@ int H5Pget_ndims (hid_t space_id);
|
||||
int H5Pget_dims (hid_t space_id, size_t dims[]);
|
||||
hbool_t H5Pis_simple (hid_t space_id);
|
||||
herr_t H5Pset_space (hid_t space_id, int rank, const size_t *dims);
|
||||
herr_t H5Pset_hyperslab(hid_t sid, const int *start, const int *count,
|
||||
const int *stride);
|
||||
herr_t H5Pset_hyperslab(hid_t sid, const int *start, const size_t *count,
|
||||
const size_t *stride);
|
||||
int H5Pget_hyperslab (hid_t sid, int offset[]/*out*/,
|
||||
int size[]/*out*/, int stride[]/*out*/);
|
||||
size_t size[]/*out*/, size_t stride[]/*out*/);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user