Function tskit::bindings::kastore_puts
source · pub unsafe extern "C" fn kastore_puts(
self_: *mut kastore_t,
key: *const c_char,
array: *const c_void,
array_len: usize,
type_: c_int,
flags: c_int
) -> c_int
Expand description
@brief Insert the specified NULL terminated key and array pair into the store.
@rst
As for :c:func:kastore_put
except the key must be NULL-terminated C string.
@endrst
@param self A pointer to a kastore object. @param key The key. @param array The array. @param array_len The number of elements in the array. @param type The type of the array. @param flags The insertion flags, only KAS_BORROWS_ARRAY or 0 is a valid. @return Return 0 on success or a negative value on failure.