Creates and writes a dataset.
Procedure:
H5LT_MAKE_DATASET_SHORT(loc_id, dset_name, rank, dims, buffer)
Signature:
herr_t H5LTmake_dataset_short ( hid_t loc_id, const char *dset_name, int rank, const hsize_t *dims, const short *buffer )
Parameters:
hid_t loc_id | IN: Identifier of the file or group to create the dataset within. |
const char *dset_name | IN: The name of the dataset to create. |
int rank | IN: Number of dimensions of dataspace. |
const hsize_t * dims | IN: An array of the size of each dimension. |
const short * buffer | IN: Buffer with data to be written to the dataset. |
Description:
H5LTmake_dataset_short
creates and writes a dataset named dset_name
attached to the object specified by the identifier loc_id
.
The dataset’s datatype will be short signed integer, H5T_NATIVE_SHORT
.
Returns:
Returns a non-negative value if successful; otherwise returns a negative value.
Example:
--- Last Modified: December 04, 2017 | 07:12 AM