summaryrefslogtreecommitdiffstats
path: root/src/H5Spublic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Spublic.h')
-rw-r--r--src/H5Spublic.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/H5Spublic.h b/src/H5Spublic.h
index f69b623..a10852e 100644
--- a/src/H5Spublic.h
+++ b/src/H5Spublic.h
@@ -22,7 +22,7 @@
/* Define atomic datatypes */
#define H5S_ALL (-2)
-#define H5S_UNLIMITED ((size_t)(-1L))
+#define H5S_UNLIMITED ((hsize_t)(hssize_t)(-1))
/* Different types of dataspaces */
typedef enum H5S_class_t {
@@ -37,18 +37,19 @@ extern "C" {
#endif
/* Functions in H5S.c */
-hid_t H5Screate_simple (int rank, const size_t dims[], const size_t maxdims[]);
+hid_t H5Screate_simple (int rank, const hsize_t dims[],
+ const hsize_t maxdims[]);
hid_t H5Scopy (hid_t space_id);
herr_t H5Sclose (hid_t space_id);
-size_t H5Sget_npoints (hid_t space_id);
+hsize_t H5Sget_npoints (hid_t space_id);
int H5Sget_ndims (hid_t space_id);
-int H5Sget_dims (hid_t space_id, size_t dims[]);
+int H5Sget_dims (hid_t space_id, hsize_t dims[]);
hbool_t H5Sis_simple (hid_t space_id);
-herr_t H5Sset_space (hid_t space_id, int rank, const size_t *dims);
-herr_t H5Sset_hyperslab(hid_t sid, const int *start, const size_t *count,
- const size_t *stride);
-int H5Sget_hyperslab (hid_t sid, int offset[]/*out*/,
- size_t size[]/*out*/, size_t stride[]/*out*/);
+herr_t H5Sset_space (hid_t space_id, int rank, const hsize_t *dims);
+herr_t H5Sset_hyperslab(hid_t sid, const hssize_t *start, const hsize_t *count,
+ const hsize_t *stride);
+int H5Sget_hyperslab (hid_t sid, hssize_t offset[]/*out*/,
+ hsize_t size[]/*out*/, hsize_t stride[]/*out*/);
#ifdef __cplusplus
}