ymap_insert

Function ymap_insert 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ymap_insert( map: *const Branch, txn: *mut Transaction, key: *const c_char, value: *const YInput, )
Expand description

Inserts a new entry (specified as key-value pair) into a current map. If entry under such given key already existed, its corresponding value will be replaced.

A key must be a null-terminated UTF-8 encoded string, which contents will be copied into a map (therefore it must be freed by the function caller).

A value content is being copied into a map, therefore any of its content must be freed by the function caller.