| 932 | // low level functions for c interface |
| 933 | |
| 934 | herr_t writei(hid_t obj, const char *attr_name, const int *attr_data, hsize_t data_size) |
| 935 | { |
| 936 | herr_t status; |
| 937 | hsize_t dim[1] = { data_size }; |
| 938 | hid_t space = H5Screate_simple(1, dim, NULL); |
| 939 | hid_t attr = H5Acreate(obj, attr_name, H5T_STD_I32LE, space, H5P_DEFAULT, H5P_DEFAULT); |
| 940 | status = H5Awrite(attr, H5T_NATIVE_INT, attr_data); |
| 941 | status = H5Aclose(attr); |
| 942 | status = H5Sclose(space); |
| 943 | return status; |
| 944 | } |
| 945 | herr_t writed(hid_t obj, const char *attr_name, const double *attr_data, hsize_t data_size) |
| 946 | { |
| 947 | herr_t status; |