Function slow5lib_sys::slow5_open_with
source · [−]pub unsafe extern "C" fn slow5_open_with(
pathname: *const c_char,
mode: *const c_char,
format: slow5_fmt
) -> *mut slow5_file_tExpand description
Open a slow5 file of a specific format with a mode given it’s pathname.
Return NULL if pathname or mode is NULL, or if the format specified doesn’t match the file. slow5_open_with(pathname, mode, SLOW5_FORMAT_UNKNOWN) is equivalent to slow5_open(pathname, mode).
Otherwise, return a slow5 file structure with the header parsed. slow5_close() should be called when finished with the structure.
TODO: same issues as in slow5_open are applicable to this
@param pathname relative or absolute path to slow5 file @param mode same mode as in fopen() @param format format of the slow5 file @return slow5 file structure