Function rust_htslib::htslib::bgzf_index_dump_hfile [] [src]

pub unsafe extern "C" fn bgzf_index_dump_hfile(
    fp: *mut BGZF,
    idx: *mut hFILE,
    name: *const c_char
) -> c_int

Write a BGZF index to an hFILE /**

  • @param fp BGZF file handle
  • @param idx hFILE to write to
  • @param name file name (for error reporting only, can be NULL)
  • @return 0 on success and -1 on error.
  • Write index data from @p fp to the file @p idx.
  • The file name can optionally be passed in the @p name parameter. This
  • is only used for printing error messages; if NULL the word "index" is
  • used instead. */