Function tskit::bindings::kastore_oputs

source ·
pub unsafe extern "C" fn kastore_oputs(
    self_: *mut kastore_t,
    key: *const c_char,
    array: *mut 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, transferring ownership of the malloced array buffer to the store (own-put).

@rst As for :c:func:kastore_oput 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. Must be a pointer returned by malloc/calloc. @param array_len The number of elements in the array. @param type The type of the array. @param flags The insertion flags. Currently unused. @return Return 0 on success or a negative value on failure.