slow5_get_next

Function slow5_get_next 

Source
pub unsafe extern "C" fn slow5_get_next(
    read: *mut *mut slow5_rec_t,
    s5p: *mut slow5_file_t,
) -> c_int
Expand description

Get the read entry under the current file pointer of a slow5 file.

Allocates memory for *read if it is NULL. Otherwise, the data in *read is freed and overwritten. slow5_rec_free() should be called when finished with the structure.

Return value:

=0 the read was successfully found and stored <0 error code

Errors: SLOW5_ERR_EOF EOF reached SLOW5_ERR_ARG read_id, read or s5p is NULL SLOW5_ERR_IO other error when reading the slow5 file SLOW5_ERR_RECPARSE record parsing error

@param read address of a slow5_rec_t pointer @param s5p slow5 file @return error code described above