H5LT_SET_ATTRIBUTE_LONG_LONG
Creates and writes an attribute.
Procedure:
H5LT_SET_ATTRIBUTE_LONG_LONG(loc_id, obj_name, attr_name, data, size)
Signature:
herr_t H5LTset_attribute_long_long (hid_t loc_id, const char *obj_name, const char *attr_name, const long_long *data, size_t size)
Parameters:
hid_t loc_id | Location of the object to which the attribute is to be attached. |
const char *obj_name | That object’s name. |
const char *attr_name | Attribute name. |
const long_long *data | Attribute value. |
size_t size | Attribute size. |
Description:
H5LTset_attribute_long_long
creates and writes a numerical attribute named attr_name
and attaches it to the object specified by the name obj_name
.
The attribute has a dimensionality of 1 and its HDF5 datatype is H5T_NATIVE_LLONG
.
Returns:
Returns a non-negative value if successful; otherwise returns a negative value.
Example:
--- Last Modified: December 04, 2017 | 07:15 AM