DataInputStream.readUptoAsync

The asynchronous version of g_data_input_stream_read_upto(). It is an error to have two outstanding calls to this function. In contrast to g_data_input_stream_read_until(), this function does not consume the stop character. You have to use g_data_input_stream_read_byte() to get it before calling g_data_input_stream_read_upto() again. Note that stop_chars may contain '\0' if stop_chars_len is specified. When the operation is finished, callback will be called. You can then call g_data_input_stream_read_upto_finish() to get the result of the operation. Since 2.26

class DataInputStream
void
readUptoAsync

Parameters

stopChars string

characters to terminate the read

ioPriority int

the I/O priority of the request.

cancellable Cancellable

optional GCancellable object, NULL to ignore. [allow-none]

callback GAsyncReadyCallback

callback to call when the request is satisfied. [scope async]

userData void*

the data to pass to callback function. closure

Meta