Function libcqdb::cqdb_writer_close[][src]

#[no_mangle]pub 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.