FileReadMoreCallback

typealias FileReadMoreCallback = (fileContents: String, fileSize: Long) -> Boolean

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 true if more data should be read, or false otherwise.

  • param fileContents the data as currently read.

  • param fileSize the size of the data currently read.

  • return true if more data should be read back. false otherwise.