characters to terminate the read.
the [I/O priority][io-priority] of the request
optional #GCancellable object, %NULL to ignore.
callback to call when the request is satisfied.
the data to pass to callback function.
Deprecated: Use g_data_input_stream_read_upto_async() instead, which has more consistent behaviour regarding the stop character.
2.20
The asynchronous version of g_data_input_stream_read_until(). It is an error to have two outstanding calls to this function.
Note that, in contrast to g_data_input_stream_read_until(), this function does not consume the stop character that it finds. You must read it for yourself.
When the operation is finished, @callback will be called. You can then call g_data_input_stream_read_until_finish() to get the result of the operation.
Don't use this function in new code. Its functionality is inconsistent with g_data_input_stream_read_until(). Both functions will be marked as deprecated in a future release. Use g_data_input_stream_read_upto_async() instead.