6.19 GFileReadMoreCallback

Callback: GFileReadMoreCallback

A procedure given for it is called as (procedure file-contents file-size) ⇒ %return. If the function that it is given to has no user data for it, it is also passed callback-data, last.

When loading the partial contents of a file with g_file_load_partial_contents_async(), it may become necessary to determine if any more data from the file should be loaded. A GFileReadMoreCallback function facilitates this by returning #t if more data should be read, or #f otherwise.

file-contents

Passed: a string.

the data as currently read.

file-size

Passed: a 64-bit integer.

the size of the data currently read.

%return

Returned: a boolean.

#t if more data should be read back. #f otherwise.

callback-data

Not passed: it is the user data that guile-gi supplied.

data passed to the callback.