[][src]Function cqdb_sys::cqdb_writer_close

pub unsafe extern "C" fn cqdb_writer_close(dbw: *mut cqdb_writer_t) -> c_int

Close a CQDB writer.

This function finalizes the database on the stream. If successful, the data remaining on the memory is flushed to the stream; the stream position is moved to the end of the chunk. If an unexpected error occurs, this function tries to rewind the stream position to the original position when the function cqdb_writer() was called.

@param dbw The pointer to the ::cqdb_writer_t instance. @retval int Zero if successful, or a status code otherwise.