cursor_calculate


Description:

public bool cursor_calculate (BookCacheCursor cursor, out int out_total, out int out_position, Cancellable? cancellable = null) throws Error

Calculates the out_total amount of results for the cursor's query expression, as well as the current out_position of cursor in the results.

The out_position is represented as the amount of results which lead up to the current value of cursor, if cursor currently points to an exact contact, the position also includes the cursor contact.

Parameters:

this

An BookCache

cursor

The BookCacheCursor

out_total

A return location to store the total result set for this cursor

out_position

A return location to store the cursor position

cancellable

optional Cancellable object, or null

Returns:

Whether out_total and out_position were successfully calculated.