Function rust_htslib::htslib::hts_idx_set_meta [] [src]

pub unsafe extern "C" fn hts_idx_set_meta(
    idx: *mut hts_idx_t,
    l_meta: u32,
    meta: *mut u8,
    is_copy: c_int
) -> c_int

Set extra index meta-data ** @param idx The index @param l_meta Length of data @param meta Pointer to the extra data @param is_copy If not zero, a copy of the data is taken @return 0 on success; -1 on failure (out of memory).

Sets the data that is returned by hts_idx_get_meta().

If is_copy != 0, a copy of the input data is taken. If not, ownership of the data pointed to by *meta passes to the index. */