H5Mput
fn
herr_t H5Mput(
hid_t map_id,
hid_t key_mem_type_id,
const(void) * key,
hid_t val_mem_type_id,
const(void) * value,
hid_t mapl_id
)Adds or updates a key-value pair in a map.
If the key already exists, its value is updated. If the key does not exist, a new key-value pair is created.
Parameters
map_id | Map identifier |
key_mem_type_id | Memory datatype of the key |
key | Pointer to the key data |
val_mem_type_id | Memory datatype of the value |
value | Pointer to the value data |
mapl_id | Map access property list identifier, or H5P_DEFAULT |
Returns
Non-negative on success, negative on failure.