H5LTset_attribute_ushort

fnherr_t H5LTset_attribute_ushort(hid_t loc_id, const char * obj_name, const char * attr_name, const ushort * buffer, size_t size)

Sets an unsigned short attribute.

Creates and writes an attribute containing unsigned short values.

Parameters

loc_idLocation identifier
obj_nameName of the object to attach the attribute to
attr_nameName of the attribute
bufferBuffer containing the attribute data
sizeNumber of elements in the buffer

Returns

Non-negative on success, negative on failure.